Tk Source Code

Artifact [b8870352]
Login

Artifact b88703527b93d21c2bff3c6a5282f4ecacfae66d:

Attachment "tk8.6-scale.patch" to ticket [3529885f] added by gregcouch 2012-05-26 09:27:31.
--- library/scale.tcl.orig	2012-05-21 11:25:00.000000000 -0700
+++ library/scale.tcl	2012-05-21 17:45:09.000000000 -0700
@@ -223,7 +223,13 @@
 	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}]