]> git.saurik.com Git - wxWidgets.git/commitdiff
Strip menu codes from page label for consistency with other platforms
authorJulian Smart <julian@anthemion.co.uk>
Tue, 5 Feb 2008 09:12:36 +0000 (09:12 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 5 Feb 2008 09:12:36 +0000 (09:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/notebmac.cpp

index 301c141a6e0eb7e9355b806d3d003d6c1fbf51ce..925e652b43eda6335a8d9a6dc4d2af8e8fc81f71 100644 (file)
@@ -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 );