summaryrefslogtreecommitdiffstats
path: root/library/clrpick.tcl
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2001-06-14 10:56:58 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2001-06-14 10:56:58 (GMT)
commit7eee0f576b4dbc3bb14bde987a61b8492461e6a6 (patch)
treeab207a698a3ec34347d9ed68baa80cb2825a3bd1 /library/clrpick.tcl
parentcc2f5e4489a686fb1498729f1fb0cae3db20670e (diff)
downloadtk-7eee0f576b4dbc3bb14bde987a61b8492461e6a6.zip
tk-7eee0f576b4dbc3bb14bde987a61b8492461e6a6.tar.gz
tk-7eee0f576b4dbc3bb14bde987a61b8492461e6a6.tar.bz2
Added braces to expressions.
Diffstat (limited to 'library/clrpick.tcl')
-rw-r--r--library/clrpick.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/clrpick.tcl b/library/clrpick.tcl
index c173015..2cc74f1 100644
--- a/library/clrpick.tcl
+++ b/library/clrpick.tcl
@@ -3,7 +3,7 @@
# Color selection dialog for platforms that do not support a
# standard color selection dialog.
#
-# RCS: @(#) $Id: clrpick.tcl,v 1.11 2000/06/30 06:38:38 ericm Exp $
+# RCS: @(#) $Id: clrpick.tcl,v 1.12 2001/06/14 10:56:58 dkf Exp $
#
# Copyright (c) 1996 Sun Microsystems, Inc.
#
@@ -198,7 +198,7 @@ proc tkColorDialog_BuildDialog {w} {
set stripsFrame [frame $topFrame.colorStrip]
set maxWidth [::msgcat::mcmax Red Green Blue]
- set maxWidth [expr $maxWidth<6?6:$maxWidth]
+ set maxWidth [expr {$maxWidth<6?6:$maxWidth}]
set colorList [list \
red [::msgcat::mc "Red"] \
green [::msgcat::mc "Green"] \
@@ -276,7 +276,7 @@ proc tkColorDialog_BuildDialog {w} {
#
set botFrame [frame $w.bot -relief raised -bd 1]
set maxWidth [::msgcat::mcmax OK Cancel]
- set maxWidth [expr $maxWidth<8?8:$maxWidth]
+ set maxWidth [expr {$maxWidth<8?8:$maxWidth}]
button $botFrame.ok -text [::msgcat::mc "OK"] \
-width $maxWidth -under 0 \
-command [list tkColorDialog_OkCmd $w]