sw/source/uibase/uiview/viewmdi.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 279abd670317760dd1d58c549a0589c3a31c1e4d
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Mon Mar 7 17:59:37 2022 -0900
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Wed Mar 9 00:23:04 2022 +0100

    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 <rayk...@gmail.com>

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();

Reply via email to