# HG changeset patch # User Claus Gittinger # Date 1481025125 -3600 # Node ID 258a644612153cba6f3ab395627ce4cdf2468872 # Parent 4e4d637296ba048cb8b90ef1bd5e05ee02124586 #FEATURE by cg class: ImageEditor changed: #findColorMapMode colormapmode when converting diff -r 4e4d637296ba -r 258a64461215 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