fixed assert failure when removing a menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -720,8 +720,6 @@ wxMenu *wxMenuBar::Remove(size_t pos)
|
|||||||
wxLogLastError(wxT("RemoveMenu"));
|
wxLogLastError(wxT("RemoveMenu"));
|
||||||
}
|
}
|
||||||
|
|
||||||
menu->Detach();
|
|
||||||
|
|
||||||
#if wxUSE_ACCEL
|
#if wxUSE_ACCEL
|
||||||
if ( menu->HasAccels() )
|
if ( menu->HasAccels() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user