compilation error fixed (see Sun build log)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-06-19 07:50:53 +00:00
parent 8dad40e19b
commit 3591a31424

View File

@@ -67,7 +67,7 @@ wxControl::~wxControl()
wxPanel *panel = wxDynamicCast(GetParent(), wxPanel); wxPanel *panel = wxDynamicCast(GetParent(), wxPanel);
if (panel) if (panel)
{ {
if (panel->GetDefaultItem() == this) if ( (wxControl *)panel->GetDefaultItem() == this)
panel->SetDefaultItem((wxButton*) NULL); panel->SetDefaultItem((wxButton*) NULL);
} }
} }