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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user