summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-03-07 07:23:32 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-03-07 07:23:32 (GMT)
commit3cfbe8c3cbcd156bfc4b58934d1fb1f65291bfdd (patch)
tree11e37a47e2655503b70df917280f25bac3cc6ed2
parent2fd9fcf08d73f688888ef8784be0c5493b80d818 (diff)
parente34d5227c7b3b6adb662059adbb55ac026d5baf2 (diff)
downloadtk-3cfbe8c3cbcd156bfc4b58934d1fb1f65291bfdd.zip
tk-3cfbe8c3cbcd156bfc4b58934d1fb1f65291bfdd.tar.gz
tk-3cfbe8c3cbcd156bfc4b58934d1fb1f65291bfdd.tar.bz2
Fixed bug [3137232] - spinbox error after destroying toplevel from widget
-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)