# HG changeset patch # User Claus Gittinger # Date 1249663492 -7200 # Node ID 1c09be361688fca43d4d0a9cce3bbb802cf9c828 # Parent 8b182cc4cac7b33a96930a82753c24e3917d7678 *** empty log message *** diff -r 8b182cc4cac7 -r 1c09be361688 ImageEditor.st --- a/ImageEditor.st Fri Aug 07 18:35:42 2009 +0200 +++ b/ImageEditor.st Fri Aug 07 18:44:52 2009 +0200 @@ -4236,7 +4236,11 @@ prevMode := colorMapMode value. newColorMap := self class listOfColorMaps at:aMode. - depth := (newColorMap size log:2) asInteger. + aMode == #depth32 ifTrue:[ + depth := 32. + ] ifFalse:[ + depth := (newColorMap size log:2) asInteger. + ]. useNearest := false. depth == 1 ifTrue:[