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:
parent
c60fc26d55
commit
95814e4902
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user