ImageEditor.st
changeset 3367 033c21371bea
parent 3359 258a64461215
child 3370 c88532134a2b
equal deleted inserted replaced
3366:70c6139984a6 3367:033c21371bea
  4053     newListOfColors notEmptyOrNil ifTrue:[
  4053     newListOfColors notEmptyOrNil ifTrue:[
  4054         drawColor1 := newListOfColors at:1.
  4054         drawColor1 := newListOfColors at:1.
  4055         drawColor2 := newListOfColors at:2 ifAbsent:drawColor1.
  4055         drawColor2 := newListOfColors at:2 ifAbsent:drawColor1.
  4056 
  4056 
  4057         self hasMask ifTrue: [             
  4057         self hasMask ifTrue: [             
  4058             (newListOfColors contains: [:clr| clr = (Color colorId:0)]) 
  4058             (newListOfColors includes:(Color colorId:0)) ifFalse:[
  4059             ifFalse:[
       
  4060                 newListOfColors addFirst:(Color colorId:0).
  4059                 newListOfColors addFirst:(Color colorId:0).
  4061                 drawColor1 := newListOfColors at:2. 
  4060                 drawColor1 := newListOfColors at:2. 
  4062                 drawColor2 := newListOfColors at:3 ifAbsent:drawColor1.
  4061                 drawColor2 := newListOfColors at:3 ifAbsent:drawColor1.
  4063             ]
  4062             ]
  4064         ].
  4063         ].