]> git.saurik.com Git - wxWidgets.git/commitdiff
using new API instead of 2.8 compat, fixes #9990
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 22 Sep 2008 14:00:03 +0000 (14:00 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 22 Sep 2008 14:00:03 +0000 (14:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/menu.cpp

index 0f51cac08a9cc567eaf034428ba90c5d553751d9..bb6b08ea2e5a94137cc4af6ebe42b05388f08e72 100644 (file)
@@ -217,7 +217,7 @@ public :
                 MenuRef submenu = pItem->GetSubMenu()->GetHMenu();
                 SetMenuItemHierarchicalMenu(m_osxMenu, index, submenu);
                 // carbon is using the title of the submenu, eg in the menubar
-                SetMenuTitleWithCFString(submenu, wxCFStringRef(wxStripMenuCodes(pItem->GetLabel())));
+                SetMenuTitleWithCFString(submenu, wxCFStringRef(pItem->GetItemLabelText()));
             }
             else
             {