ImageEditor.st
changeset 1075 74795d3e647d
parent 1057 36f9d47e1249
child 1076 4391fcd36dcf
--- 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.