grabScreenImage - do not convert to 8bit; leave as is initially
authorClaus Gittinger <cg@exept.de>
Sun, 19 Oct 2008 17:23:15 +0200
changeset 2420 14678b9fea60
parent 2419 e71445e7174c
child 2421 2504941c00c2
grabScreenImage - do not convert to 8bit; leave as is initially
ImageEditor.st
--- a/ImageEditor.st	Sat Oct 18 11:51:12 2008 +0200
+++ b/ImageEditor.st	Sun Oct 19 17:23:15 2008 +0200
@@ -5604,6 +5604,7 @@
             image := Image fromUser.
             image isNil ifFalse:[
                 image depth > 8 ifTrue:[
+false ifTrue:[
                     Error handle:[:ex | |sig|
                         (sig := ex signal) == HaltInterrupt ifTrue:[ex reject].
                         sig == Signal noHandlerSignal ifTrue:[ex reject].
@@ -5611,11 +5612,12 @@
                         self warn:'Could not convert to depth8 image (too many colors)'.
                         d8image := nil.
                     ] do:[
-                         d8image := Depth8Image fromImage:image photometric:#palette.
+                        d8image := Depth8Image fromImage:image photometric:#palette.
                     ].
                     d8image notNil ifTrue:[
                         image := d8image
                     ]
+].
                 ].
                 (imageEditView image:image) notNil ifTrue:[
                     self listOfColors contents:(image colorMap).