]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/button.cpp
Fixed geometry errors according to patch #1523304.
[wxWidgets.git] / src / msw / button.cpp
index afb56709925575911b1424f529612aef928363e4..08361d58b6da5d404e9cc6964e8f127a8e615897 100644 (file)
@@ -197,6 +197,11 @@ bool wxButton::Create(wxWindow *parent,
 
 wxButton::~wxButton()
 {
+    wxWindow *parent = GetParent();
+    if ( parent && parent->GetTmpDefaultItem() == this )
+    {
+        UnsetTmpDefault();
+    }
 }
 
 // ----------------------------------------------------------------------------