X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a2155efdb30931a19c2686511887966feb0c470..8a3f08bc6f9d7d7ece178d98fe01ac3ef45e1509:/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); } }