]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
wxDbGrid additions
[wxWidgets.git] / src / common / wincmn.cpp
index 95c51f5899b248dfd7e48b7757cf31c65fd15784..26eb1fb52532c97aa59e011937dc8ee2e33153d4 100644 (file)
@@ -225,16 +225,6 @@ wxWindowBase::~wxWindowBase()
 
     wxASSERT_MSG( GetChildren().GetCount() == 0, wxT("children not destroyed") );
 
-    // make sure that there are no dangling pointers left pointing to us
-    wxPanel *panel = wxDynamicCast(GetParent(), wxPanel);
-    if ( panel )
-    {
-        if ( panel->GetLastFocus() == this )
-        {
-            panel->SetLastFocus((wxWindow *)NULL);
-        }
-    }
-
 #if wxUSE_CARET
     if ( m_caret )
         delete m_caret;