From c96f9d2162ee2e7fcdcbafd20824b8e98be17d9c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Mar 2004 21:33:15 +0000 Subject: [PATCH] don't set wxMenu::m_menuBar when appending the menu to menubar as otherwise an assert happens in the base class Attach() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/menu.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/motif/menu.cpp b/src/motif/menu.cpp index 82193e0cce..6ec02dd1b5 100644 --- a/src/motif/menu.cpp +++ b/src/motif/menu.cpp @@ -289,8 +289,6 @@ bool wxMenuBar::Append(wxMenu * menu, const wxString& title) menu->SetButtonWidget(w); } - //menu->SetMenuBar(this); - m_titles.Add(title); return wxMenuBarBase::Append(menu, title); @@ -522,7 +520,6 @@ WXWidget wxMenu::CreateMenu (wxMenuBar * menuBar, WXWidget parent, wxMenu * topM m_menuWidget = (WXWidget) menu; - m_menuBar = menuBar; m_topLevelMenu = topMenu; for ( wxMenuItemList::compatibility_iterator node = GetMenuItems().GetFirst();