ImageEditor.st
changeset 1583 c21cb650b2a0
parent 1579 08a760ad7900
child 1597 b670ad8c30e1
equal deleted inserted replaced
1582:912fdf2e44a8 1583:c21cb650b2a0
  2558     cMap isNil ifTrue:[
  2558     cMap isNil ifTrue:[
  2559         self warn:'Image has no colormap.\Change colorMap mode first.' withCRs.
  2559         self warn:'Image has no colormap.\Change colorMap mode first.' withCRs.
  2560         ^ self
  2560         ^ self
  2561     ].
  2561     ].
  2562 
  2562 
  2563     ((depth == 1)
  2563     ("(depth == 1)" false
  2564     or:[cMap size == (1 bitShift:depth)]) ifTrue:[
  2564     or:[cMap size == (1 bitShift:depth)]) ifTrue:[
  2565         depth >= 8 ifTrue:[
  2565         depth >= 8 ifTrue:[
  2566             self warn:'No space for more colors in colormap.'.
  2566             self warn:'No space for more colors in colormap.'.
  2567             ^ self
  2567             ^ self
  2568         ].
  2568         ].