tdf#145747 Fix cursor not shown

after moving focus from shape object to comment window to edit window

Change-Id: Ibce3939575cfdc941eec45fea24383fc5edf53d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125431
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit 85057da7f19e8e5d6023c16fa07d138e2b519a66)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126885
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index 0a79872..b05fedf 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -134,6 +134,7 @@ SwAnnotationShell::SwAnnotationShell( SwView& r )

SwAnnotationShell::~SwAnnotationShell()
{
    m_rView.GetWrtShell().Edit();
}

SfxUndoManager* SwAnnotationShell::GetUndoManager()