ImageEditor.st
changeset 2573 c18db441c6ab
parent 2572 1c09be361688
child 2575 43e98f6d71d2
--- a/ImageEditor.st	Fri Aug 07 18:44:52 2009 +0200
+++ b/ImageEditor.st	Wed Aug 19 20:34:46 2009 +0200
@@ -1699,7 +1699,6 @@
             label: '-'
           )
          (MenuItem
-            enabled: hasColormap
             label: 'Inspect Color'
             itemValue: inspectColor
             translateLabel: true
@@ -4710,13 +4709,18 @@
 !
 
 inspectColor
-    |clrIndex|
-
-    clrIndex := self selectedColorIndexOrNil.
-    clrIndex isNil ifTrue:[
-        ^ self
+    |clrIndex clr|
+
+    self hasColormap ifFalse:[
+        clr := self selectedColorOrNil
+    ] ifTrue:[
+        clrIndex := self selectedColorIndexOrNil.
+        clrIndex isNil ifTrue:[
+            ^ self
+        ].
+        clr := self image colorFromValue:clrIndex-1
     ].
-    (self image colorFromValue:clrIndex-1) inspect
+    clr inspect
 !
 
 makeBrighter