#REFACTORING by stefan
class: ImageEditor
changed: #findColorMapMode
use #includes: instead of #contains:
--- 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.