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
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
Reference in New Issue
Block a user