corrected mac src due to new api changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-08-06 15:57:14 +00:00
parent 6b55490abd
commit c1fb8167e9
10 changed files with 38 additions and 48 deletions

View File

@@ -53,7 +53,8 @@ void wxButton::SetDefault()
wxPanel *panel = wxDynamicCast(parent, wxPanel);
if ( panel )
{
btnOldDefault = panel->GetDefaultItem();
btnOldDefault = wxDynamicCast(panel->GetDefaultItem(),
wxButton);
panel->SetDefaultItem(this);
}