X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a2155efdb30931a19c2686511887966feb0c470..5adad46628e545a6d4172ecf3a0cb848934f5cd0:/src/motif/control.cpp diff --git a/src/motif/control.cpp b/src/motif/control.cpp index 4a79908477..c31dec797f 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -67,7 +67,7 @@ wxControl::~wxControl() wxPanel *panel = wxDynamicCast(GetParent(), wxPanel); if (panel) { - if (panel->GetDefaultItem() == this) + if ( (wxControl *)panel->GetDefaultItem() == this) panel->SetDefaultItem((wxButton*) NULL); } }