From 6134811179988d701a8a1a2e715f3c05b4e0112b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ball=C3=BCder?= Date: Fri, 24 Jul 1998 10:31:25 +0000 Subject: [PATCH] fixed private member access problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/mdi.cpp | 2 +- src/gtk1/mdi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/mdi.cpp b/src/gtk/mdi.cpp index 5726755278..69a709e439 100644 --- a/src/gtk/mdi.cpp +++ b/src/gtk/mdi.cpp @@ -250,7 +250,7 @@ static void SetInvokingWindow( wxMenu *menu, wxWindow *win ) while (node) { wxMenuItem *menuitem = (wxMenuItem*)node->Data(); - if (menuitem->m_isSubMenu) SetInvokingWindow( menuitem->m_subMenu, win ); + if (menuitem->GetSubMenu()) SetInvokingWindow( menuitem->GetSubMenu(), win ); node = node->Next(); }; }; diff --git a/src/gtk1/mdi.cpp b/src/gtk1/mdi.cpp index 5726755278..69a709e439 100644 --- a/src/gtk1/mdi.cpp +++ b/src/gtk1/mdi.cpp @@ -250,7 +250,7 @@ static void SetInvokingWindow( wxMenu *menu, wxWindow *win ) while (node) { wxMenuItem *menuitem = (wxMenuItem*)node->Data(); - if (menuitem->m_isSubMenu) SetInvokingWindow( menuitem->m_subMenu, win ); + if (menuitem->GetSubMenu()) SetInvokingWindow( menuitem->GetSubMenu(), win ); node = node->Next(); }; };