X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/motif/control.cpp diff --git a/src/motif/control.cpp b/src/motif/control.cpp index 18f8bbeb68..4026913541 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -13,8 +13,11 @@ #include "wx/wxprec.h" #include "wx/control.h" -#include "wx/panel.h" -#include "wx/utils.h" + +#ifndef WX_PRECOMP + #include "wx/utils.h" + #include "wx/panel.h" +#endif #ifdef __VMS__ #pragma message disable nosimpint @@ -82,7 +85,7 @@ void wxControl::SetLabel(const wxString& label) if (!widget) return; - wxXmString label_str(wxStripMenuCodes(label)); + wxXmString label_str(GetLabelText(label)); XtVaSetValues (widget, XmNlabelString, label_str(),