fixed private member access problem

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1998-07-24 10:31:25 +00:00
parent fe3d8179fa
commit 6134811179
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ static void SetInvokingWindow( wxMenu *menu, wxWindow *win )
while (node) while (node)
{ {
wxMenuItem *menuitem = (wxMenuItem*)node->Data(); wxMenuItem *menuitem = (wxMenuItem*)node->Data();
if (menuitem->m_isSubMenu) SetInvokingWindow( menuitem->m_subMenu, win ); if (menuitem->GetSubMenu()) SetInvokingWindow( menuitem->GetSubMenu(), win );
node = node->Next(); node = node->Next();
}; };
}; };

View File

@ -250,7 +250,7 @@ static void SetInvokingWindow( wxMenu *menu, wxWindow *win )
while (node) while (node)
{ {
wxMenuItem *menuitem = (wxMenuItem*)node->Data(); wxMenuItem *menuitem = (wxMenuItem*)node->Data();
if (menuitem->m_isSubMenu) SetInvokingWindow( menuitem->m_subMenu, win ); if (menuitem->GetSubMenu()) SetInvokingWindow( menuitem->GetSubMenu(), win );
node = node->Next(); node = node->Next();
}; };
}; };