X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..fea909e19e86b8da2d54c530d3a89ee9456c3333:/src/motif/control.cpp 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(),