]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/menu.cpp
include wxWindows headers using "..." instead of <...>
[wxWidgets.git] / src / os2 / menu.cpp
index e960818b45d16caef40f1236fc81aebf401ea9bd..587a60a854e9984085f4ef69221eb710eee82c34 100644 (file)
@@ -609,7 +609,12 @@ wxMenuItem* wxMenu::FindItem(
         }
         else if ( pItem->IsSubMenu() )
         {
         }
         else if ( pItem->IsSubMenu() )
         {
-            pItem = pItem->GetSubMenu()->FindItem(nItemId, hItem, ppItemMenu);
+            pItem = pItem->GetSubMenu()->FindItem( nItemId
+                                                  ,hItem
+                                                  ,ppItemMenu
+                                                 );
+            if (pItem)
+                break;
         }
         else
         {
         }
         else
         {