summaryrefslogtreecommitdiffstats
path: root/library/demos/hscale.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-07-03 20:01:07 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-07-03 20:01:07 (GMT)
commitacb44d9f5c12d2a4c9d00fe67ce6ed9a06a3e0cd (patch)
tree9c44f5571f5e10f7994f13677b54b497cb9411e4 /library/demos/hscale.tcl
parent606071581d513fe5326526b43a2ff4ef0cd4285d (diff)
downloadtk-acb44d9f5c12d2a4c9d00fe67ce6ed9a06a3e0cd.zip
tk-acb44d9f5c12d2a4c9d00fe67ce6ed9a06a3e0cd.tar.gz
tk-acb44d9f5c12d2a4c9d00fe67ce6ed9a06a3e0cd.tar.bz2
* Merged in updates from HEAD branch.
Diffstat (limited to 'library/demos/hscale.tcl')
-rw-r--r--library/demos/hscale.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/demos/hscale.tcl b/library/demos/hscale.tcl
index fca7f20..abe29a2 100644
--- a/library/demos/hscale.tcl
+++ b/library/demos/hscale.tcl
@@ -2,7 +2,7 @@
#
# This demonstration script shows an example with a horizontal scale.
#
-# RCS: @(#) $Id: hscale.tcl,v 1.2 1998/09/14 18:23:28 stanton Exp $
+# RCS: @(#) $Id: hscale.tcl,v 1.2.22.1 2001/07/03 20:01:09 dgp Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -38,7 +38,7 @@ $w.frame.scale set 75
proc setWidth {w width} {
incr width 21
- set x2 [expr $width - 30]
+ set x2 [expr {$width - 30}]
if {$x2 < 21} {
set x2 21
}