summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-20 15:31:34 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-20 15:31:34 (GMT)
commit2f150c8d18e576998e9d30ac08c562a1365b3051 (patch)
tree0bf494ef3df37666de672ecad8113c5146bcecbe /library
parent7f319fbd695d47a2c7d4c68a90a9f90072a56085 (diff)
parent1c0858ce27408d641e6b3bb8f66e9b59cf630014 (diff)
downloadtk-2f150c8d18e576998e9d30ac08c562a1365b3051.zip
tk-2f150c8d18e576998e9d30ac08c562a1365b3051.tar.gz
tk-2f150c8d18e576998e9d30ac08c562a1365b3051.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
+ }
}