X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03c50fa3b51961ef2cd2d3bc0229de1cafebaf2..3cd94a0d119ade811cd876a309cfe6d28b5c36dd:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index 6570c1303b..945441b4ea 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -147,7 +147,7 @@ wxControl::~wxControl() void wxControl::SetLabel(const wxString& title) { - m_label = title ; + m_label = wxStripMenuCodes(title) ; if ( (ControlHandle) m_macControl ) { @@ -155,9 +155,9 @@ void wxControl::SetLabel(const wxString& title) wxString label ; if( wxApp::s_macDefaultEncodingIsPC ) - label = wxMacMakeMacStringFromPC( title ) ; + label = wxMacMakeMacStringFromPC( m_label ) ; else - label = title ; + label = m_label ; #if TARGET_CARBON c2pstrcpy( (StringPtr) maclabel , label ) ;