compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
71789654c7
commit
93488eee91
@ -66,12 +66,8 @@ wxControl::~wxControl()
|
||||
{
|
||||
// If we delete an item, we should initialize the parent panel,
|
||||
// because it could now be invalid.
|
||||
wxPanel *panel = wxDynamicCast(GetParent(), wxPanel);
|
||||
if (panel)
|
||||
{
|
||||
if ( (wxControl *)panel->GetDefaultItem() == this)
|
||||
panel->SetDefaultItem((wxButton*) NULL);
|
||||
}
|
||||
if ( GetParent()->panel->GetDefaultItem() == this)
|
||||
panel->SetDefaultItem(NULL);
|
||||
}
|
||||
|
||||
void wxControl::SetLabel(const wxString& label)
|
||||
|
Loading…
Reference in New Issue
Block a user