ImageEditor.st
changeset 1906 2d7a21c00135
parent 1905 b389cf085b98
child 1910 4ca9f4b322c9
--- a/ImageEditor.st	Mon May 02 12:13:37 2005 +0200
+++ b/ImageEditor.st	Mon May 09 09:15:39 2005 +0200
@@ -3033,7 +3033,11 @@
 
     colors := image colorMap.
     colors isNil ifTrue:[
-        colors := image usedColors asSet.
+        Error handle:[:ex |
+            colors := OrderedCollection new.
+        ] do:[
+            colors := image usedColors asSet.
+        ]
     ].
     self listOfColors contents:(colors asOrderedCollection).
 !