From c46487ac0f86e781190dad3736b3e15c6e9f4a9f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:40:59 +0000 Subject: [PATCH] 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 --- src/univ/menu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index c764af3cef..8ed9de44e3 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -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);