# HG changeset patch # User Claus Gittinger # Date 1250706886 -7200 # Node ID c18db441c6ababed92c96321d3d68fb2b6bc3c92 # Parent 1c09be361688fca43d4d0a9cce3bbb802cf9c828 changed #inspectColor diff -r 1c09be361688 -r c18db441c6ab ImageEditor.st --- 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