fixed spurious assert failure in wxMenuBar::Insert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -649,8 +649,6 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title)
|
|||||||
|
|
||||||
m_titles.Insert(title, pos);
|
m_titles.Insert(title, pos);
|
||||||
|
|
||||||
menu->Attach(this);
|
|
||||||
|
|
||||||
if ( IsAttached() )
|
if ( IsAttached() )
|
||||||
{
|
{
|
||||||
if ( !::InsertMenu(GetHmenu(), pos,
|
if ( !::InsertMenu(GetHmenu(), pos,
|
||||||
|
Reference in New Issue
Block a user