summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-03-07 07:25:34 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-03-07 07:25:34 (GMT)
commit1ad97f110b61d0c9965666da04a4d6352b1dec31 (patch)
tree037982f1b92e84ad64a957abecd2224990078b67 /library
parent5bffed846abfaec687f6765212249f3ad9dfb8f1 (diff)
downloadtk-1ad97f110b61d0c9965666da04a4d6352b1dec31.zip
tk-1ad97f110b61d0c9965666da04a4d6352b1dec31.tar.gz
tk-1ad97f110b61d0c9965666da04a4d6352b1dec31.tar.bz2
Fixed bug [3137232] - spinbox error after destroying toplevel from widget (cherrypicked [e6d91ca077]
Diffstat (limited to 'library')
-rw-r--r--library/spinbox.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/spinbox.tcl b/library/spinbox.tcl
index 02584f4..fecf7d6 100644
--- a/library/spinbox.tcl
+++ b/library/spinbox.tcl
@@ -299,6 +299,10 @@ bind Spinbox <B2-Motion> {
proc ::tk::spinbox::Invoke {w elem} {
variable ::tk::Priv
+ if {![winfo exists $w]} {
+ return
+ }
+
if {![info exists Priv(outsideElement)]} {
$w invoke $elem
incr Priv(repeated)