From 3bc9aac0364a68e83c3c1fb512b3f4bf0dc07d2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 31 Jan 2008 21:58:20 +0000 Subject: [PATCH] compilation fix for wxUSE_MENUS=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index b114571d5d..fd92806261 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -317,10 +317,12 @@ wxWindowBase::~wxWindowBase() // we weren't a dialog class wxTopLevelWindows.DeleteObject((wxWindow*)this); +#if wxUSE_MENUS // The associated popup menu can still be alive, disassociate from it in // this case if ( wxCurrentPopupMenu && wxCurrentPopupMenu->GetInvokingWindow() == this ) wxCurrentPopupMenu->SetInvokingWindow(NULL); +#endif // wxUSE_MENUS wxASSERT_MSG( GetChildren().GetCount() == 0, wxT("children not destroyed") ); -- 2.50.0