equal
deleted
inserted
replaced
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 ]. |