X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/motif/stattext.cpp?ds=inline diff --git a/src/motif/stattext.cpp b/src/motif/stattext.cpp index 953f4cd659..e109caae2d 100644 --- a/src/motif/stattext.cpp +++ b/src/motif/stattext.cpp @@ -47,7 +47,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, Widget borderWidget = (Widget) wxCreateBorderWidget( (WXWidget)parentWidget, style ); - wxXmString text( wxStripMenuCodes( label ) ); + wxXmString text( GetLabelText( label ) ); m_labelWidget = XtVaCreateManagedWidget (wxConstCast(name.c_str(), char), @@ -73,7 +73,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, void wxStaticText::SetLabel(const wxString& label) { - wxXmString label_str(wxStripMenuCodes(label)); + wxXmString label_str(GetLabelText(label)); // This variable means we don't need so many casts later. Widget widget = (Widget) m_labelWidget;