Mercurial > projects > dwt-mac
diff 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 |
line wrap: on
line diff
--- a/dwt/internal/image/FileFormat.d Wed Aug 27 14:30:35 2008 +0200 +++ b/dwt/internal/image/FileFormat.d Wed Aug 27 14:32:39 2008 +0200 @@ -51,7 +51,7 @@ inputStream = stream; return loadFromByteStream(); } catch (Exception e) { - if (e instanceof IOException) { + if ( null !is cast(IOException)e ) { DWT.error(DWT.ERROR_IO, e); } else { DWT.error(DWT.ERROR_INVALID_IMAGE, e);