From: Vadim Zeitlin Date: Thu, 4 Oct 2001 23:05:53 +0000 (+0000) Subject: fixed spurious assert failure in wxMenuBar::Insert X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cdbe233029e7ce2c73b5b333bb5bfbef471a7b50 fixed spurious assert failure in wxMenuBar::Insert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 4721abb431..4b44e01de2 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -649,8 +649,6 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title) m_titles.Insert(title, pos); - menu->Attach(this); - if ( IsAttached() ) { if ( !::InsertMenu(GetHmenu(), pos,