]> git.saurik.com Git - wxWidgets.git/commitdiff
Strip menu codes out from notebook page labels
authorJulian Smart <julian@anthemion.co.uk>
Sun, 8 Oct 2006 16:00:43 +0000 (16:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 8 Oct 2006 16:00:43 +0000 (16:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/notebook.cpp

index 948917069c1fb453b3ef689951de3ed65ca77033..9c4b4a3932ff9a185f19c4c85cfc05f849c2eed1 100644 (file)
@@ -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)) );