]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed spurious assert failure in wxMenuBar::Insert
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Oct 2001 23:05:53 +0000 (23:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Oct 2001 23:05:53 +0000 (23:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menu.cpp

index 4721abb4311543363bcc483ed07c8e0ff4711d1c..4b44e01de2cbff97c89027e58db1694d865b676a 100644 (file)
@@ -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,