Mercurial > projects > dwt-mac
comparison dwt/internal/image/FileFormat.d @ 8:a9ab4c738ed8
Fix: instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:32:39 +0200 |
parents | e831403a80a9 |
children | 5123b17c98ef |
comparison
equal
deleted
inserted
replaced
7:e831403a80a9 | 8:a9ab4c738ed8 |
---|---|
49 public ImageData[] loadFromStream(LEDataInputStream stream) { | 49 public ImageData[] loadFromStream(LEDataInputStream stream) { |
50 try { | 50 try { |
51 inputStream = stream; | 51 inputStream = stream; |
52 return loadFromByteStream(); | 52 return loadFromByteStream(); |
53 } catch (Exception e) { | 53 } catch (Exception e) { |
54 if (e instanceof IOException) { | 54 if ( null !is cast(IOException)e ) { |
55 DWT.error(DWT.ERROR_IO, e); | 55 DWT.error(DWT.ERROR_IO, e); |
56 } else { | 56 } else { |
57 DWT.error(DWT.ERROR_INVALID_IMAGE, e); | 57 DWT.error(DWT.ERROR_INVALID_IMAGE, e); |
58 } | 58 } |
59 return null; | 59 return null; |