# HG changeset patch # User Stefan Vogel # Date 1483452015 -3600 # Node ID 033c21371bea97648c3c6446acd7239dd06c280c # Parent 70c6139984a644a420a62e1897652b8b6eb64841 #REFACTORING by stefan class: ImageEditor changed: #findColorMapMode use #includes: instead of #contains: diff -r 70c6139984a6 -r 033c21371bea 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.