X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/911e17c6cf31c0e9e7ab4cdb8e03d66203ebbab8..af5454a410ed37a8a1639716a0c96c191e60b7f0:/src/cocoa/button.mm diff --git a/src/cocoa/button.mm b/src/cocoa/button.mm index 093bc3fcf5..7b93013217 100644 --- a/src/cocoa/button.mm +++ b/src/cocoa/button.mm @@ -43,7 +43,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID winid, [m_cocoaNSView release]; [GetNSButton() setBezelStyle:NSRoundedBezelStyle]; - [GetNSButton() setTitle:wxNSStringWithWxString(label)]; + [GetNSButton() setTitle:wxNSStringWithWxString(wxStripMenuCodes(label))]; [GetNSControl() sizeToFit]; if(m_parent) @@ -73,7 +73,7 @@ wxString wxButton::GetLabel() const void wxButton::SetLabel(const wxString& label) { - [GetNSButton() setTitle:wxNSStringWithWxString(label)]; + [GetNSButton() setTitle:wxNSStringWithWxString(wxStripMenuCodes(label))]; } wxSize wxButtonBase::GetDefaultSize()