ImageEditor.st
changeset 1471 aa01951b16cf
parent 1460 89549732a2c8
child 1479 18f7b6cc2514
--- a/ImageEditor.st	Mon Jun 25 18:51:08 2001 +0200
+++ b/ImageEditor.st	Mon Jul 23 17:23:19 2001 +0200
@@ -2278,8 +2278,14 @@
                             tmpBits := oldImage bits
                         ] ifFalse:[
                             colorMapMode value:prevMode.
-                            self warn:('Too many colors in image ( ', oldImage usedColors size printString , ').').
+                            self warn:('Too many used colors in image (', oldImage usedColors size printString , ').').
                             ^ self
+"/                            (self confirm:('Too many used colors in image (', oldImage usedColors size printString , ').\\Dither ?' withCRs))
+"/                            ifFalse:[.
+"/                                ^ self
+"/                            ].
+"/                            self image: (Image newForDepth:depth) fromImage:oldImage.
+"/                            ^ self.
                         ]
                     ].
                     usageCounts := tmpBits usageCounts.