#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Mon, 13 Feb 2017 15:32:44 +0100
changeset 5468 2ca6776b4271
parent 5467 fef61bfd9fad
child 5469 5bc43ecbfc54
#UI_ENHANCEMENT by cg class: ImageEditView changed: #makeSubImageX:y:width:height:
ImageEditView.st
--- a/ImageEditView.st	Mon Feb 13 10:14:03 2017 +0100
+++ b/ImageEditView.st	Mon Feb 13 15:32:44 2017 +0100
@@ -1339,7 +1339,9 @@
 
     newImage := image class width:newWidth height:newHeight depth:image depth.
     newImage photometric:image photometric.
-    newImage colorMap:image colorMap copy.
+    image photometric == #palette ifTrue:[
+        newImage colorMap:image colorMap copy.
+    ].
     newImage bits:(ByteArray new:(newImage bytesPerRow * newHeight)).
 
     image mask notNil ifTrue:[
@@ -1368,8 +1370,7 @@
     self setModified.
 
     "Created: / 07-09-1998 / 13:00:16 / cg"
-    "Modified: / 07-09-1998 / 14:15:32 / cg"
-    "Modified (format): / 16-11-2016 / 23:07:50 / cg"
+    "Modified: / 13-02-2017 / 14:48:46 / cg"
 !
 
 makeUndo