Instead of m_menuBar use GetMenuBar() which will be modified (with next patch)

to traverse up the menu hierarchy to return the menu bar.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-03-30 00:43:16 +00:00
parent 7fa23c09cd
commit 4224f05975
6 changed files with 27 additions and 27 deletions

View File

@@ -1235,10 +1235,10 @@ void wxMenu::Detach()
wxWindow *wxMenu::GetRootWindow() const
{
if ( m_menuBar )
if ( GetMenuBar() )
{
// simple case - a normal menu attached to the menubar
return m_menuBar;
return GetMenuBar();
}
// we're a popup menu but the trouble is that only the top level popup menu