]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed assert failure when removing a menu
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Dec 2001 01:29:21 +0000 (01:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Dec 2001 01:29:21 +0000 (01:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menu.cpp

index 4b44e01de2cbff97c89027e58db1694d865b676a..93e92056ef02f1f94f3d2b4e323ac341e7eee8df 100644 (file)
@@ -720,8 +720,6 @@ wxMenu *wxMenuBar::Remove(size_t pos)
             wxLogLastError(wxT("RemoveMenu"));
         }
 
-        menu->Detach();
-
 #if wxUSE_ACCEL
         if ( menu->HasAccels() )
         {