From: Julian Smart Date: Tue, 5 Feb 2008 09:12:36 +0000 (+0000) Subject: Strip menu codes from page label for consistency with other platforms X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f96524a0f6e44549b55c5adbbb90c8ee0d5419f1?ds=inline Strip menu codes from page label for consistency with other platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index 301c141a6e..925e652b43 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -187,7 +187,7 @@ bool wxNotebook::SetPageText(size_t nPage, const wxString& strText) wxCHECK_MSG( IS_VALID_PAGE(nPage), false, wxT("SetPageText: invalid notebook page") ); wxNotebookPage *page = m_pages[nPage]; - page->SetLabel(strText); + page->SetLabel(wxStripMenuCodes(strText)); MacSetupTabs(); return true; @@ -281,7 +281,7 @@ bool wxNotebook::InsertPage(size_t nPage, // don't show pages by default (we'll need to adjust their size first) pPage->Show( false ) ; - pPage->SetLabel( strText ); + pPage->SetLabel( wxStripMenuCodes(strText) ); m_images.Insert( imageId, nPage );