summaryrefslogtreecommitdiff
path: root/tk/library/demos/hscale.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tk/library/demos/hscale.tcl')
-rw-r--r--tk/library/demos/hscale.tcl3
1 files changed, 1 insertions, 2 deletions
diff --git a/tk/library/demos/hscale.tcl b/tk/library/demos/hscale.tcl
index 13bf81c70ff..25ae7794a4d 100644
--- a/tk/library/demos/hscale.tcl
+++ b/tk/library/demos/hscale.tcl
@@ -38,11 +38,10 @@ $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
}
$w coords poly 20 15 20 35 $x2 35 $x2 45 $width 25 $x2 5 $x2 15 20 15
$w coords line 20 15 20 35 $x2 35 $x2 45 $width 25 $x2 5 $x2 15 20 15
}
-