#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Sat, 20 Oct 2018 11:32:19 +0200
changeset 5926 ac15d2063d25
parent 5925 2f08e105a69b
child 5927 f8763479f0c9
#BUGFIX by cg class: ImageEditView changed: #pasteAt:mode:
ImageEditView.st
--- a/ImageEditView.st	Thu Oct 18 00:36:02 2018 +0200
+++ b/ImageEditView.st	Sat Oct 20 11:32:19 2018 +0200
@@ -1931,11 +1931,11 @@
                         ^ self.
                     ].
                     answer == #new ifTrue:[
-                        existingColors := image usedValues asIdentitySet.
-                        newColors := copiedImage usedValues.
-                        allColors := existingColors addAll:newColors.
+                        existingColors := image usedColors asSet.
+                        newColors := copiedImage usedColors.
+                        allColors := (Set withAll:existingColors) addAll:newColors; yourself.
                         allColors size > (1 bitShift:image depth) ifTrue:[
-                            self warn:(resources string:'Sorry: too many colors - unimplemented function').
+                            self warn:(resources string:'Sorry: too many colors - please change the depth, then paste again').
                             self undo.
                             ^ self.
                         ].