From ea8052218599dabc48fcddc83b20a937bb91a9b3 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 15 Jan 2017 15:17:29 +0100 Subject: [PATCH] Show a separator before the thesaurus entries Signed-off-by: Sven Strickroth --- src/Utils/MiscUI/SciEdit.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Utils/MiscUI/SciEdit.cpp b/src/Utils/MiscUI/SciEdit.cpp index e7a988bc7..7341f8322 100644 --- a/src/Utils/MiscUI/SciEdit.cpp +++ b/src/Utils/MiscUI/SciEdit.cpp @@ -1005,18 +1005,14 @@ void CSciEdit::OnContextMenu(CWnd* /*pWnd*/, CPoint point) pHandler->InsertMenuItems(popup, nCustoms); } #if THESAURUS - if (nCustoms > nCorrections) - { - // custom menu entries present, so add another separator - popup.AppendMenu(MF_SEPARATOR); - } - // add found thesauri to sub menu's CMenu thesaurs; int nThesaurs = 0; CPtrArray menuArray; if (thesaurs.CreatePopupMenu()) { + if ((nCustoms > nCorrections || m_arContextHandlers.IsEmpty()) && !bIsReadOnly) + popup.AppendMenu(MF_SEPARATOR); if (pThesaur && !worda.IsEmpty() && !bIsReadOnly) { mentry * pmean; -- 2.11.4.GIT