summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-18 10:14:33 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-18 10:14:33 (GMT)
commit1c0858ce27408d641e6b3bb8f66e9b59cf630014 (patch)
treec0dc7bbe0c0f44ef9fe25376c27a5d029f49807e /library
parentac52dfb290b2def674a44dcdd9d2a5744f435ba8 (diff)
downloadtk-1c0858ce27408d641e6b3bb8f66e9b59cf630014.zip
tk-1c0858ce27408d641e6b3bb8f66e9b59cf630014.tar.gz
tk-1c0858ce27408d641e6b3bb8f66e9b59cf630014.tar.bz2
Fixed [011706ec42] for the scrollbar case.bug_011706ec42
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
+ }
}