X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e877c195bc9ade6d4cb9f96bffb00e81978d740..a3e7d24d21f5371c88caffe4a85c8e4a5362db3f:/src/motif/button.cpp diff --git a/src/motif/button.cpp b/src/motif/button.cpp index 44f1f521db..610a94ef19 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -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);