diff --git a/contrib/src/fl/frmview.cpp b/contrib/src/fl/frmview.cpp index 56730f2cd3..a29061b1e0 100644 --- a/contrib/src/fl/frmview.cpp +++ b/contrib/src/fl/frmview.cpp @@ -199,11 +199,14 @@ int wxFrameManager::GetViewNo( wxFrameView* pView ) void wxFrameManager::EnableMenusForView( wxFrameView* pView, bool enable ) { wxMenuBar* pMenuBar = GetParentFrame()->GetMenuBar(); - int count = pMenuBar->GetMenuCount(); if ( !pMenuBar ) return; + int count = pMenuBar->GetMenuCount(); + + + wxStringList::compatibility_iterator pNode = pView->mTopMenus.GetFirst(); int i;