sw/source/uibase/shells/annotsh.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2d6af46a82c6b9f1565933e8a1175e7a184256ca
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Fri Apr 1 22:08:42 2022 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Sun Apr 3 21:17:38 2022 +0200

    tdf#147925 fix view scrolling back to comment
    
    fixes regression caused by fix done for commit
    85057da7f19e8e5d6023c16fa07d138e2b519a66
    
    Change-Id: I427513bd920f4e0047c64210feecfeac22ecfd10
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132451
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/shells/annotsh.cxx 
b/sw/source/uibase/shells/annotsh.cxx
index e99ee1eb2a24..3801f0489da7 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -135,7 +135,8 @@ SwAnnotationShell::SwAnnotationShell( SwView& r )
 
 SwAnnotationShell::~SwAnnotationShell()
 {
-    m_rView.GetWrtShell().Edit();
+    if (m_rView.GetWrtShell().CanInsert())
+        m_rView.ShowCursor(true);
 }
 
 SfxUndoManager* SwAnnotationShell::GetUndoManager()

Reply via email to