summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-03-07 17:59:37 -0900
committerJim Raykowski <raykowj@gmail.com>2022-03-09 00:23:04 +0100
commit279abd670317760dd1d58c549a0589c3a31c1e4d (patch)
treed056095e578687e26cc95aa1bfd39a6997d4cb9c
parentde3f19062a84890fc89cd4836512ded5b5d82b94 (diff)
Fix annotation window from being created by Navigate By Comment
when a text selection is present. Change-Id: Icef331334a8ad7a499477860c6d883f26e909577 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131158 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sw/source/uibase/uiview/viewmdi.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx
index 9acb7f8f7bd0..72986fe7d8d6 100644
--- a/sw/source/uibase/uiview/viewmdi.cxx
+++ b/sw/source/uibase/uiview/viewmdi.cxx
@@ -530,6 +530,7 @@ IMPL_LINK( SwView, MoveNavigationHdl, void*, p, void )
{
if (m_pPostItMgr->HasNotes())
{
+ rSh.EnterStdMode();
m_pPostItMgr->AssureStdModeAtShell();
m_pPostItMgr->SetActiveSidebarWin(nullptr);
GetEditWin().GrabFocus();