checkin from browser
authorClaus Gittinger <cg@exept.de>
Mon, 23 Jul 2001 17:23:19 +0200
changeset 1471 aa01951b16cf
parent 1470 7b20694c92e7
child 1472 283c85ffefe0
checkin from browser
ImageEditor.st
--- 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.