Fix for missing separator if any previous items were ownerdrawn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -407,7 +407,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
|
||||
// items already are. Later we might want to use a boolean in the wxMenu
|
||||
// to avoid search. Also we might make this fix unnecessary by getting the correct
|
||||
// margin using NONCLIENTMETRICS.
|
||||
if ( !pItem->IsOwnerDrawn() )
|
||||
if ( !pItem->IsOwnerDrawn() && !pItem->IsSeparator() )
|
||||
{
|
||||
// Check if any other items are ownerdrawn, and make ownerdrawn if so
|
||||
wxMenuItemList::compatibility_iterator node = GetMenuItems().GetFirst();
|
||||
|
Reference in New Issue
Block a user