#FEATURE by cg expecco_2_10_0 expecco_2_10_0_41
authorClaus Gittinger <cg@exept.de>
Tue, 06 Dec 2016 12:52:05 +0100
changeset 3359 258a64461215
parent 3358 4e4d637296ba
child 3360 b7f7e48455dd
#FEATURE by cg class: ImageEditor changed: #findColorMapMode colormapmode when converting
ImageEditor.st
--- a/ImageEditor.st	Fri Dec 02 16:57:32 2016 +0100
+++ b/ImageEditor.st	Tue Dec 06 12:52:05 2016 +0100
@@ -4016,6 +4016,13 @@
     colorMapModeKey := colorMapModeKey , image depth printString.
     self colorMapMode setValue:colorMapModeKey.
 
+    image photometric == #palette ifTrue:[
+        image colorMap isNil ifTrue:[
+            image depth > 16 ifTrue:[
+                image photometric:#rgb
+            ].
+        ].
+    ].
 
     image depth > 12 ifTrue:[
         newListOfColors := OrderedCollection new.
@@ -4064,7 +4071,7 @@
         self listOfColors contents:newListOfColors.
     ].
 
-    "Modified: / 18-01-2012 / 13:58:38 / cg"
+    "Modified: / 06-12-2016 / 12:51:36 / cg"
 !
 
 selectedColorsChanged