Strip menu codes out from notebook page labels
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -692,7 +692,7 @@ bool wxNotebook::InsertPage( size_t position,
|
||||
|
||||
/* set the label text */
|
||||
|
||||
nb_page->m_text = text;
|
||||
nb_page->m_text = wxStripMenuCodes(text);
|
||||
if (nb_page->m_text.empty()) nb_page->m_text = wxEmptyString;
|
||||
|
||||
nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) );
|
||||
|
Reference in New Issue
Block a user