]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/menu.cpp
porting dcscreen blit from 2.8
[wxWidgets.git] / 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
             {