]> git.saurik.com Git - wxWidgets.git/commitdiff
Handle separators in menus correctly.
authorStefan Neis <Stefan.Neis@t-online.de>
Sat, 7 Feb 2004 17:04:28 +0000 (17:04 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sat, 7 Feb 2004 17:04:28 +0000 (17:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/menu.cpp

index 1174131571564b40c882062f22902e65960f4f4f..dff498d244d9357afdd7d14cc6c08617aa30dfd3 100644 (file)
@@ -344,7 +344,7 @@ bool wxMenu::DoInsertOrAppend(
         pItem->m_vMenuData.afStyle = rItem.afStyle;
         pItem->m_vMenuData.hItem   = rItem.hItem;
     }
-    else
+    else if (!pItem->IsSeparator())
 #endif
     {
         //