diff --git a/src/cocoa/stattext.mm b/src/cocoa/stattext.mm index 4c948ba801..8fc1b823df 100644 --- a/src/cocoa/stattext.mm +++ b/src/cocoa/stattext.mm @@ -44,7 +44,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID winid, m_cocoaNSView = NULL; SetNSTextField([[NSTextField alloc] initWithFrame:MakeDefaultNSRect(size)]); [m_cocoaNSView release]; - [GetNSTextField() setStringValue:wxNSStringWithWxString(wxStripMenuCodes(label, wxStrip_Mnemonics))]; + [GetNSTextField() setStringValue:wxNSStringWithWxString(GetLabelText(label))]; // [GetNSTextField() setBordered: NO]; [GetNSTextField() setBezeled: NO]; [GetNSTextField() setEditable: NO]; @@ -70,7 +70,7 @@ wxStaticText::~wxStaticText() void wxStaticText::SetLabel(const wxString& label) { - [GetNSTextField() setStringValue:wxNSStringWithWxString(wxStripMenuCodes(label, wxStrip_Mnemonics))]; + [GetNSTextField() setStringValue:wxNSStringWithWxString(GetLabelText(label))]; NSRect oldFrameRect = [GetNSTextField() frame]; NSView *superview = [GetNSTextField() superview]; wxLogTrace(wxTRACE_COCOA_Window_Size, wxT("wxStaticText::SetLabel Old Position: (%d,%d)"), GetPosition().x, GetPosition().y);