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:
@@ -100,7 +100,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
|||||||
void wxButton::SetDefault()
|
void wxButton::SetDefault()
|
||||||
{
|
{
|
||||||
wxWindow *parent = GetParent();
|
wxWindow *parent = GetParent();
|
||||||
wxPanel *panel = wxDynamicCast(panel, wxPanel);
|
wxPanel *panel = wxDynamicCast(parent, wxPanel);
|
||||||
if ( panel )
|
if ( panel )
|
||||||
panel->SetDefaultItem(this);
|
panel->SetDefaultItem(this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user