X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..249803fbcd1f73040e4b5457e341d8db2e5cb66e:/src/motif/control.cpp?ds=sidebyside diff --git a/src/motif/control.cpp b/src/motif/control.cpp index 2c00c7cdf3..4026913541 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -16,10 +16,9 @@ #ifndef WX_PRECOMP #include "wx/utils.h" + #include "wx/panel.h" #endif -#include "wx/panel.h" - #ifdef __VMS__ #pragma message disable nosimpint #endif @@ -86,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(),