#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 22 Nov 2016 01:49:16 +0100
changeset 7688 d3ccb450ed58
parent 7687 44e289d89461
child 7689 6ada06895459
#BUGFIX by cg class: Image changed: #fromImage:photometric: #inspector2TabImage preserve colormap
Image.st
--- a/Image.st	Mon Nov 21 23:51:59 2016 +0100
+++ b/Image.st	Tue Nov 22 01:49:16 2016 +0100
@@ -5772,7 +5772,7 @@
     samplesPerPixel := self samplesPerPixel.
 
     photometricOrNil isNil ifTrue:[
-        photometric := self class defaultPhotometric
+        photometric := anImage photometric. "/ self class defaultPhotometric
         "/ photometric := anImage photometric
     ] ifFalse:[
         photometricOrNil == #rgba ifTrue:[
@@ -5888,7 +5888,7 @@
      ]
     "
 
-    "Modified: / 05-02-2011 / 17:46:58 / cg"
+    "Modified: / 22-11-2016 / 01:41:31 / cg"
 !
 
 fromSubImage:anImage in:aRectangle