X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a2155efdb30931a19c2686511887966feb0c470..d6c9c1b71e069396bbe3850862de9aa10e6812e0:/src/motif/control.cpp?ds=sidebyside 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); } }