From 85a5b1d92ebb4d66c9ed683df99dc8b37c0f02a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Wed, 2 Mar 2022 12:00:34 +0100 Subject: [PATCH] lok: fix goto functionality in Accessibility Check dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie9ce42ccdb5cf6c72df3d3d48d3e7369f9e2f9cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130830 Reviewed-by: Pranam Lashkari Tested-by: Jenkins CollaboraOffice Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130952 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- sw/source/core/access/AccessibilityIssue.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sw/source/core/access/AccessibilityIssue.cxx b/sw/source/core/access/AccessibilityIssue.cxx index b15d22955a87..f8b8e3858013 100644 --- a/sw/source/core/access/AccessibilityIssue.cxx +++ b/sw/source/core/access/AccessibilityIssue.cxx @@ -11,6 +11,7 @@ #include #include #include +#include namespace sw { @@ -49,12 +50,16 @@ void AccessibilityIssue::gotoIssue() const { SwWrtShell* pWrtShell = m_pDoc->GetDocShell()->GetWrtShell(); pWrtShell->GotoFly(m_sObjectID, FLYCNTTYPE_ALL, true); + if (comphelper::LibreOfficeKit::isActive()) + pWrtShell->ShowCursor(); } break; case IssueObject::TABLE: { SwWrtShell* pWrtShell = m_pDoc->GetDocShell()->GetWrtShell(); pWrtShell->GotoTable(m_sObjectID); + if (comphelper::LibreOfficeKit::isActive()) + pWrtShell->ShowCursor(); } break; case IssueObject::TEXT: @@ -70,6 +75,8 @@ void AccessibilityIssue::gotoIssue() const pPaM->SetMark(); *pPaM->GetMark() = aMark; pWrtShell->EndAllAction(); + if (comphelper::LibreOfficeKit::isActive()) + pWrtShell->ShowCursor(); } break; default: