When append menu with titlt, the menu should set the title

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:40:59 +00:00
parent 7bc33811b9
commit c46487ac0f

View File

@@ -1756,6 +1756,8 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title)
if ( !wxMenuBarBase::Insert(pos, menu, title) )
return false;
menu->SetTitle( title );
wxMenuInfo *info = new wxMenuInfo(title);
m_menuInfos.Insert(info, pos);