diff options
author | dkf <dkf@noemail.net> | 2005-07-25 09:05:58 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2005-07-25 09:05:58 (GMT) |
commit | 5823e7fe9bef0d239ad9f95d9c6b2156b03595aa (patch) | |
tree | 500381c93622d097f72623503a4192b8a2313845 /library/palette.tcl | |
parent | 3d7b2be382c2e5fe292b2c8e99edbb086d09eda1 (diff) | |
download | tk-5823e7fe9bef0d239ad9f95d9c6b2156b03595aa.zip tk-5823e7fe9bef0d239ad9f95d9c6b2156b03595aa.tar.gz tk-5823e7fe9bef0d239ad9f95d9c6b2156b03595aa.tar.bz2 |
Apply some of the changes suggested in [Patch 1237759]
FossilOrigin-Name: f4f7febb1fd0d382ec64762edd93acd98eedff6f
Diffstat (limited to 'library/palette.tcl')
-rw-r--r-- | library/palette.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/palette.tcl b/library/palette.tcl index 55834d3..0ec5b94 100644 --- a/library/palette.tcl +++ b/library/palette.tcl @@ -3,7 +3,7 @@ # This file contains procedures that change the color palette used # by Tk. # -# RCS: @(#) $Id: palette.tcl,v 1.8 2001/11/29 10:54:21 dkf Exp $ +# RCS: @(#) $Id: palette.tcl,v 1.9 2005/07/25 09:06:00 dkf Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # @@ -174,7 +174,7 @@ proc ::tk::RecolorTree {w colors} { # dbOption, then use it, otherwise use the defaults # for the widget. set defaultcolor [option get $w $dbOption $class] - if {[string match {} $defaultcolor] || \ + if {$defaultcolor eq "" || \ ([info exists prototype] && \ [$prototype cget $option] ne "$defaultcolor")} { set defaultcolor [winfo rgb . [lindex $value 3]] |