summaryrefslogtreecommitdiffstats
path: root/library/spinbox.tcl
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-22 21:46:32 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-22 21:46:32 (GMT)
commitc1281276fbe90d460fcf036c178a97477fa9755d (patch)
tree3ac24d40bd6e13b5a3b99a0b4075510875dcea08 /library/spinbox.tcl
parent2c4722a85c6197cf3257adaa63e27a86b551866f (diff)
downloadtk-c1281276fbe90d460fcf036c178a97477fa9755d.zip
tk-c1281276fbe90d460fcf036c178a97477fa9755d.tar.gz
tk-c1281276fbe90d460fcf036c178a97477fa9755d.tar.bz2
Fixed bug [3137232] - spinbox error after destroying toplevel from widget
Diffstat (limited to 'library/spinbox.tcl')
-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)