From 392b86bbf125385bf4300570b2f87c87ceb42008 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 10 Nov 2012 02:13:22 +0000 Subject: [PATCH] Fixed camera menu not updating. --- win/Mainfrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/Mainfrm.cpp b/win/Mainfrm.cpp index d3c3da5f..cb084ce4 100644 --- a/win/Mainfrm.cpp +++ b/win/Mainfrm.cpp @@ -635,7 +635,7 @@ BOOL CMainFrame::OnShowPopupMenu(CMFCPopupMenu* pMenuPopup) for (int iItemPop = 0; !bIsCamerawMenu && iItemPop < iItemMax; iItemPop ++) { UINT nID = ::GetMenuItemID( hMenuPop, iItemPop); - bIsCamerawMenu = (nID >= ID_CAMERA_FIRST && nID <= ID_CAMERA_LAST); + bIsCamerawMenu = (nID == ID_VIEW_CAMERAS_RESET) || (nID >= ID_CAMERA_FIRST && nID <= ID_CAMERA_LAST); } if (bIsCamerawMenu)