]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
better update rect calculation
[wxWidgets.git] / src / msw / control.cpp
index 6788e0ceb7385381535f08bc84d97ae8ea5fab22..7f609f7bd6b00841a116122225fa38a01e81a4a3 100644 (file)
@@ -56,15 +56,6 @@ wxControl::wxControl()
 wxControl::~wxControl()
 {
     m_isBeingDeleted = TRUE;
-
-    // If we delete an item, we should initialize the parent panel,
-    // because it could now be invalid.
-    wxWindow *parent = (wxWindow *)GetParent();
-    if (parent)
-    {
-        if (parent->GetDefaultItem() == (wxButton*) this)
-            parent->SetDefaultItem(NULL);
-    }
 }
 
 bool wxControl::ProcessCommand(wxCommandEvent& event)