From c58fbb3f9791fad348f5441c96d26b1015e0098c Mon Sep 17 00:00:00 2001 From: fvogel Date: Thu, 30 Oct 2014 21:50:07 +0000 Subject: Fixed bug [3529885fff] --- library/scale.tcl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/library/scale.tcl b/library/scale.tcl index b4da824..771c7a4 100644 --- a/library/scale.tcl +++ b/library/scale.tcl @@ -223,7 +223,13 @@ proc ::tk::ScaleIncrement {w dir big repeat} { set inc [$w cget -resolution] } if {([$w cget -from] > [$w cget -to]) ^ ($dir eq "up")} { - set inc [expr {-$inc}] + if {$inc > 0} { + set inc [expr {-$inc}] + } + } else { + if {$inc < 0} { + set inc [expr {-$inc}] + } } $w set [expr {[$w get] + $inc}] -- cgit v0.12