From 95814e4902f412f28940f1db6acc5e06a901f25f Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Wed, 25 Aug 1999 06:27:57 +0000 Subject: [PATCH] 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 --- src/motif/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.0