#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Tue, 03 Jan 2017 15:00:15 +0100
changeset 3367 033c21371bea
parent 3366 70c6139984a6
child 3368 a0ef44e63e6f
#REFACTORING by stefan class: ImageEditor changed: #findColorMapMode use #includes: instead of #contains:
ImageEditor.st
--- a/ImageEditor.st	Tue Jan 03 14:51:05 2017 +0100
+++ b/ImageEditor.st	Tue Jan 03 15:00:15 2017 +0100
@@ -4055,8 +4055,7 @@
         drawColor2 := newListOfColors at:2 ifAbsent:drawColor1.
 
         self hasMask ifTrue: [             
-            (newListOfColors contains: [:clr| clr = (Color colorId:0)]) 
-            ifFalse:[
+            (newListOfColors includes:(Color colorId:0)) ifFalse:[
                 newListOfColors addFirst:(Color colorId:0).
                 drawColor1 := newListOfColors at:2. 
                 drawColor2 := newListOfColors at:3 ifAbsent:drawColor1.