#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 29 Aug 2017 23:14:17 +0200
changeset 3999 2e26f0d49ca9
parent 3998 f38061cec746
child 4000 d39d58494281
#BUGFIX by cg class: WindowsIconReader changed: #fromWindowsBMPStream:alreadyRead: nil value check
WindowsIconReader.st
--- a/WindowsIconReader.st	Tue Aug 29 23:12:04 2017 +0200
+++ b/WindowsIconReader.st	Tue Aug 29 23:14:17 2017 +0200
@@ -1397,6 +1397,7 @@
     
     self reportDimension.
 
+    numColor := numColor ? 0.
     numColor ~~ 0 ifTrue:[
         "read the colormap - notice: its in BGR order (sigh)"
 
@@ -1493,7 +1494,7 @@
     ^ self image
 
     "Modified: / 17-09-1995 / 18:48:46 / claus"
-    "Modified: / 28-08-2017 / 03:29:24 / cg"
+    "Modified: / 29-08-2017 / 23:12:59 / cg"
 !
 
 fromWindowsICOFile:aFilename