summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2006-02-07 21:38:27 +0000
committerCarolyn MacLeod <carolyn>2006-02-07 21:38:27 +0000
commit8893f517660270ca90d80d35c2c7eb9e8f50245a (patch)
tree10e37dc1912333d5249918264ea96eb682610e18
parent771da6ba3ac4112d6141b3608cdff56dd0cd22b9 (diff)
downloadeclipse.platform.swt-8893f517660270ca90d80d35c2c7eb9e8f50245a.tar.gz
eclipse.platform.swt-8893f517660270ca90d80d35c2c7eb9e8f50245a.tar.xz
eclipse.platform.swt-8893f517660270ca90d80d35c2c7eb9e8f50245a.zip
bug 70167
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java
index 792bf2755c..6724c35533 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java
@@ -38,7 +38,11 @@ public ImageData[] loadFromStream(LEDataInputStream stream) {
inputStream = stream;
return loadFromByteStream();
} catch (Exception e) {
- SWT.error(SWT.ERROR_IO, e);
+ if (e instanceof IOException) {
+ SWT.error(SWT.ERROR_IO, e);
+ } else {
+ SWT.error(SWT.ERROR_INVALID_IMAGE, e);
+ }
return null;
}
}