Skip to content

Commit

Permalink
Fix colorsFor: in 'traits ui2Image' to account for mapped or unmapped
Browse files Browse the repository at this point in the history
paint manager.
  • Loading branch information
doublec committed Jul 27, 2009
1 parent 6bcf9ee commit 4a50f3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions objects/ui2/pixmapMorphs.self 100755 → 100644
@@ -1,6 +1,6 @@
'Sun-$Revision: 30.10 $'
'
Copyright 1992-2006 Sun Microsystems, Inc. and Stanford University.
Copyright 1992-2009 AUTHORS, Sun Microsystems, Inc. and Stanford University.
See the LICENSE file for license information.
'

Expand Down Expand Up @@ -496,7 +496,8 @@ SlotsToOmit: parent prototype.
quantizing to avoid double-quantizing artifacts."

(colorQuantizing &&
[paintMgr policy != paintMgr quantizingColors]) ifTrue: [
[paintMgr areColorsMapped &&
[paintMgr policy != paintMgr quantizingColors] ]) ifTrue: [
colors copy mapBy: [| :c | c copyRGBQuantized ].
] False: [
colors copy.
Expand Down

0 comments on commit 4a50f3c

Please sign in to comment.