summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-05-18 10:14:33 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-05-18 10:14:33 (GMT)
commit6141a5c10fc1b92ffe1c86a27f1ddd3e03f712b4 (patch)
treec0dc7bbe0c0f44ef9fe25376c27a5d029f49807e /library
parenta29b1aaaeb7567e06f33b28fe9ebcf6772dd4f95 (diff)
downloadtk-6141a5c10fc1b92ffe1c86a27f1ddd3e03f712b4.zip
tk-6141a5c10fc1b92ffe1c86a27f1ddd3e03f712b4.tar.gz
tk-6141a5c10fc1b92ffe1c86a27f1ddd3e03f712b4.tar.bz2
Fixed [011706ec42] for the scrollbar case.
Diffstat (limited to 'library')
-rw-r--r--library/scrlbar.tcl11
1 files changed, 8 insertions, 3 deletions
diff --git a/library/scrlbar.tcl b/library/scrlbar.tcl
index b7be014..6f1caa2 100644
--- a/library/scrlbar.tcl
+++ b/library/scrlbar.tcl
@@ -430,6 +430,9 @@ proc ::tk::ScrollTopBottom {w x y} {
proc ::tk::ScrollButton2Down {w x y} {
variable ::tk::Priv
+ if {![winfo exists $w]} {
+ return
+ }
set element [$w identify $x $y]
if {[string match {arrow[12]} $element]} {
ScrollButtonDown $w $x $y
@@ -443,7 +446,9 @@ proc ::tk::ScrollButton2Down {w x y} {
# slider drag.
update idletasks
- $w configure -activerelief sunken
- $w activate slider
- ScrollStartDrag $w $x $y
+ if {[winfo exists $w]} {
+ $w configure -activerelief sunken
+ $w activate slider
+ ScrollStartDrag $w $x $y
+ }
}