summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2016-05-18 10:14:33 (GMT)
committerfvogel <fvogel@noemail.net>2016-05-18 10:14:33 (GMT)
commit1280c60b175c09600cfe131406af3607e47cf331 (patch)
treec0dc7bbe0c0f44ef9fe25376c27a5d029f49807e /library
parentcf9887374f47a8914aac43d7abccfc1756955d7a (diff)
downloadtk-1280c60b175c09600cfe131406af3607e47cf331.zip
tk-1280c60b175c09600cfe131406af3607e47cf331.tar.gz
tk-1280c60b175c09600cfe131406af3607e47cf331.tar.bz2
Fixed [011706ec42] for the scrollbar case.
FossilOrigin-Name: 17c4cb5e17e54d88b6d5433eba722cb696dae672
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
+ }
}