#FEATURE
authorClaus Gittinger <cg@exept.de>
Sat, 27 Feb 2016 23:37:02 +0100
changeset 3571 a830f0388ef6
parent 3570 5ea6c93102cf
child 3572 a5f900593881
#FEATURE class: WindowsIconReader changed: #canRepresent:
WindowsIconReader.st
--- a/WindowsIconReader.st	Sat Feb 27 23:36:50 2016 +0100
+++ b/WindowsIconReader.st	Sat Feb 27 23:37:02 2016 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -244,7 +246,9 @@
     "return true, if anImage can be represented in my file format.
      BMP supports depth 1,4,8 and 24."
 
-    ^ (#(1 4 8 24) includes:anImage depth)
+    (#(1 4 8 24) includes:anImage depth) ifTrue:[^true].
+    ('WindwsIconReader [info]: image depth is not 1,4,8 or 24.') infoPrintCR.
+    ^ false
 
     "Created: 17.10.1997 / 20:18:23 / cg"
 !