checkin from browser
authorClaus Gittinger <cg@exept.de>
Tue, 23 Mar 1999 10:11:49 +0100
changeset 1075 74795d3e647d
parent 1074 49ef9991d1d5
child 1076 4391fcd36dcf
checkin from browser
ImageEditor.st
--- a/ImageEditor.st	Mon Mar 22 13:16:27 1999 +0100
+++ b/ImageEditor.st	Tue Mar 23 10:11:49 1999 +0100
@@ -1909,14 +1909,13 @@
     clr := self listOfColors at:anIndex ifAbsent:nil.
     clr isNil ifTrue:[^ self].
 
+    pixel := anIndex - 1.
     (self listOfColors at:1) = Color noColor ifTrue:[
         anIndex == 1 ifTrue:[
             pixel := nil.       "/ mask
         ] ifFalse:[
-            pixel := anIndex - 2
+            pixel := pixel - 1
         ]
-    ] ifFalse:[
-        pixel := anIndex - 1
     ].
     imageEditView selectedColorIndex:pixel.
     imageEditView selectedColor:clr.