From bc11931c4ee2eee52f276b84c5642cae7578634c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 5 Feb 2008 09:12:12 +0000 Subject: [PATCH] Strip menu codes from page label for consistency with other platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/notebmac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/notebmac.cpp b/src/mac/carbon/notebmac.cpp index 89370dd30b..d5d5ffb8bb 100644 --- a/src/mac/carbon/notebmac.cpp +++ b/src/mac/carbon/notebmac.cpp @@ -190,7 +190,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; @@ -284,7 +284,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 );