tdf#156096 - A11Y - Fix moving the cursor from selected frame object

after we 'GOTO' an a11y frame issue.

Change-Id: Ia828b2ac72edfc2045090d22ccdf3f95d1877170
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153742
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
(cherry picked from commit a6fc2f6c9a3dcfab2fce365c3e424c1b68f6fadd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153847
diff --git a/sw/source/core/access/AccessibilityIssue.cxx b/sw/source/core/access/AccessibilityIssue.cxx
index feac634..ebda9a2 100644
--- a/sw/source/core/access/AccessibilityIssue.cxx
+++ b/sw/source/core/access/AccessibilityIssue.cxx
@@ -62,7 +62,12 @@ void AccessibilityIssue::gotoIssue() const
        case IssueObject::OLE:
        {
            SwWrtShell* pWrtShell = m_pDoc->GetDocShell()->GetWrtShell();
            pWrtShell->GotoFly(m_sObjectID, FLYCNTTYPE_ALL, true);
            bool bSelected = pWrtShell->GotoFly(m_sObjectID, FLYCNTTYPE_ALL, true);
            if (bSelected && pWrtShell->IsFrameSelected())
            {
                pWrtShell->HideCursor();
                pWrtShell->EnterSelFrameMode();
            }
            if (comphelper::LibreOfficeKit::isActive())
                pWrtShell->ShowCursor();
        }