#UI_ENHANCEMENT by cg
class: ImageEditView
changed: #makeSubImageX:y:width:height:
--- 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