summaryrefslogtreecommitdiffstats
path: root/library/scale.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2003-10-03 00:40:45 (GMT)
committerpatthoyts <patthoyts@noemail.net>2003-10-03 00:40:45 (GMT)
commit9e9ca1e64dc9b6b555b0b5622479511665f15814 (patch)
tree5ddbca09e96dfa69c5a4648be038d24c9f2c083a /library/scale.tcl
parentd925c51ce69e84773959349d5d905a078e67afbf (diff)
downloadtk-9e9ca1e64dc9b6b555b0b5622479511665f15814.zip
tk-9e9ca1e64dc9b6b555b0b5622479511665f15814.tar.gz
tk-9e9ca1e64dc9b6b555b0b5622479511665f15814.tar.bz2
* library/scale.tcl: Clear bug with chording mouse buttons.
FossilOrigin-Name: 853cff6916163be727053ce3a8e638cecc70e584
Diffstat (limited to 'library/scale.tcl')
-rw-r--r--library/scale.tcl8
1 files changed, 5 insertions, 3 deletions
diff --git a/library/scale.tcl b/library/scale.tcl
index c704601..ce68b98 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.11 2003/08/13 10:28:21 patthoyts Exp $
+# RCS: @(#) $Id: scale.tcl,v 1.12 2003/10/03 00:40:45 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 --