Fixed but in wxButton::SetDefault() that was causing core dumps when a

generic colour dialog was created.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward 1999-08-25 06:27:57 +00:00
parent c60fc26d55
commit 95814e4902

View File

@ -100,7 +100,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
void wxButton::SetDefault()
{
wxWindow *parent = GetParent();
wxPanel *panel = wxDynamicCast(panel, wxPanel);
wxPanel *panel = wxDynamicCast(parent, wxPanel);
if ( panel )
panel->SetDefaultItem(this);