From fd035889c7df808946332a643e6bbe3e6c88c120 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 15 Feb 2004 17:35:55 +0000 Subject: [PATCH] Really fixed separator handling. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/menu.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index 5b82181696..ee1f033062 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -304,11 +304,6 @@ bool wxMenu::DoInsertOrAppend( m_bDoBreak = FALSE; } - if (pItem->IsSeparator()) - { - rItem.afStyle |= MIS_SEPARATOR; - } - // // Id is the numeric id for normal menu items and HMENU for submenus as // required by ::MM_INSERTITEM message API @@ -344,8 +339,13 @@ bool wxMenu::DoInsertOrAppend( pItem->m_vMenuData.afStyle = rItem.afStyle; pItem->m_vMenuData.hItem = rItem.hItem; } - else if (!pItem->IsSeparator()) + else #endif + if (pItem->IsSeparator()) + { + rItem.afStyle = MIS_SEPARATOR; + } + else { // // Menu is just a normal string (passed in data parameter)