another attempt to fix wxPanel/wxFrame::m_winLastFocused handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-05-26 22:20:33 +00:00
parent b192a24c92
commit ada8f80775
3 changed files with 9 additions and 10 deletions

View 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;