#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Thu, 24 Aug 2017 18:25:21 +0200
changeset 3463 7f00ae87ae6c
parent 3462 e9eb914481b7
child 3464 9e3d52c9cca3
#REFACTORING by cg class: ImageEditor changed: #fetchImageData #reduceNumberOfColors2
ImageEditor.st
--- a/ImageEditor.st	Thu Aug 24 18:16:19 2017 +0200
+++ b/ImageEditor.st	Thu Aug 24 18:25:21 2017 +0200
@@ -6824,7 +6824,10 @@
     (image := imageEditView image) notNil ifTrue:[
         self findColorMapMode.
         self updateLabelsAndHistory.
+        self updateInfoLabel.
     ]
+
+    "Modified: / 24-08-2017 / 18:20:37 / cg"
 !
 
 inspectColor
@@ -7211,7 +7214,7 @@
     ].
 
     self withExecuteCursorDo:[
-        |reduceColor|
+        |reduceColor nUsed|
 
         reduceColor :=
             [:clr |
@@ -7247,15 +7250,17 @@
         self updateImagePreView.
 
         self fetchImageData.
+        
         usedColors := newImage usedColorsMax:10000.
-        usedColors size == 10000 ifTrue:[
-            Dialog information:('>= ' , usedColors size printString , ' colors used.')
+        nUsed := usedColors size.
+        nUsed == 10000 ifTrue:[
+            Dialog information:('>= ' , nUsed printString , ' colors used.')
         ] ifFalse:[
-            Dialog information:(usedColors size printString , ' colors used.')
+            Dialog information:(nUsed printString , ' colors used.')
         ]
     ].
 
-    "Modified: / 07-07-2006 / 13:10:42 / cg"
+    "Modified: / 24-08-2017 / 18:25:04 / cg"
 !
 
 selectColor:aColor