summaryrefslogtreecommitdiffstats
path: root/library/scale.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2003-08-13 10:59:33 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2003-08-13 10:59:33 (GMT)
commit3b3c9c1c3c7745de0f2de35cd4a3a1f4fc109c78 (patch)
tree6bdd9a994852d1634a94185de1f641b67def97b6 /library/scale.tcl
parent325d3bf1d60abe5c222b729356c0e6424718ad59 (diff)
downloadtk-3b3c9c1c3c7745de0f2de35cd4a3a1f4fc109c78.zip
tk-3b3c9c1c3c7745de0f2de35cd4a3a1f4fc109c78.tar.gz
tk-3b3c9c1c3c7745de0f2de35cd4a3a1f4fc109c78.tar.bz2
* library/scale.tcl: Fix for bug #787065 for Button-2 press.
* tests/scale.test: Added test for this bug.
Diffstat (limited to 'library/scale.tcl')
-rw-r--r--library/scale.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/scale.tcl b/library/scale.tcl
index 894358e..cdae3c9 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.1 2003/07/19 01:15:32 patthoyts Exp $
+# RCS: @(#) $Id: scale.tcl,v 1.9.2.2 2003/08/13 10:59:33 patthoyts Exp $
#
# Copyright (c) 1994 The Regents of the University of California.
# Copyright (c) 1994-1995 Sun Microsystems, Inc.
@@ -276,6 +276,7 @@ proc ::tk::ScaleButton2Down {w x y} {
$w set [$w get $x $y]
set Priv(dragging) 1
set Priv(initValue) [$w get]
+ set Priv($w,relief) [$w cget -sliderrelief]
set coords "$x $y"
set Priv(deltaX) 0
set Priv(deltaY) 0