summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2003-10-03 00:42:17 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2003-10-03 00:42:17 (GMT)
commit6c60af70b1961bdcfc0779602e4b5beb28388f4f (patch)
tree85a14231391dc59575f02d258e7da86aa52c7633
parent9d4eef9915ff4fe5f2f9c209c5b100769515897f (diff)
downloadtk-6c60af70b1961bdcfc0779602e4b5beb28388f4f.zip
tk-6c60af70b1961bdcfc0779602e4b5beb28388f4f.tar.gz
tk-6c60af70b1961bdcfc0779602e4b5beb28388f4f.tar.bz2
* library/scale.tcl: Clear bug with chording mouse buttons.
-rw-r--r--ChangeLog4
-rw-r--r--library/scale.tcl8
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e9d0c40..8b044ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-03 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * library/scale.tcl: Clear bug with chording mouse buttons.
+
2003-10-01 Daniel Steffen <das@users.sourceforge.net>
* macosx/Wish.pbproj/project.pbxproj:
diff --git a/library/scale.tcl b/library/scale.tcl
index cdae3c9..4373434 100644
--- a/library/scale.tcl
+++ b/library/scale.tcl
@@ -3,7 +3,7 @@
# This file defines the default bindings for Tk scale widgets and provides
# procedures that help in implementing the bindings.
#
-# RCS: @(#) $Id: scale.tcl,v 1.9.2.2 2003/08/13 10:59:33 patthoyts Exp $
+# RCS: @(#) $Id: scale.tcl,v 1.9.2.3 2003/10/03 00:42:17 patthoyts Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1995 Sun Microsystems, Inc.
@@ -188,8 +188,10 @@ proc ::tk::ScaleDrag {w x y} {
proc ::tk::ScaleEndDrag {w} {
variable ::tk::Priv
set Priv(dragging) 0
- $w configure -sliderrelief $Priv($w,relief)
- unset Priv($w,relief)
+ if {[info exists Priv($w,relief)]} {
+ $w configure -sliderrelief $Priv($w,relief)
+ unset Priv($w,relief)
+ }
}
# ::tk::ScaleIncrement --