X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..7b8373b34f5e25dd93ab297e3f7b9dea11307bc5:/src/motif/stattext.cpp diff --git a/src/motif/stattext.cpp b/src/motif/stattext.cpp index b0cd4e5c74..2e0b136205 100644 --- a/src/motif/stattext.cpp +++ b/src/motif/stattext.cpp @@ -13,6 +13,9 @@ #pragma implementation "stattext.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #ifdef __VMS #define XtDisplay XTDISPLAY #endif @@ -47,7 +50,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, Widget borderWidget = (Widget) wxCreateBorderWidget( (WXWidget)parentWidget, style ); - wxXmString text( label ); + wxXmString text( wxStripMenuCodes( label ) ); WXFontType fontType = m_font.GetFontType(XtDisplay(parentWidget)); m_labelWidget = XtVaCreateManagedWidget (wxConstCast(name.c_str(), char),