sw/source/core/access/AccessibilityIssue.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 12fa73e75f183b44fb79128d420f4b0f9fb8b594
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Mon Aug 14 19:05:35 2023 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Aug 17 11:44:11 2023 +0200

    tdf#156741 - A11Y - fix drawing shape is not highlighted by clicking
    
    "Avoid floating text" warning.
    
    If GotoFly not select the textframe object try GotoDrawingObject.
    
    Change-Id: Ica7829dd0cc21f3f1fb344dfb21afdfb43783cef
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155676
    Tested-by: Jenkins
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>
    (cherry picked from commit 54c158ff35ab5a0b5fa538562755638e052d51f2)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155699
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/sw/source/core/access/AccessibilityIssue.cxx 
b/sw/source/core/access/AccessibilityIssue.cxx
index e0b66391c022..577b3ed0929e 100644
--- a/sw/source/core/access/AccessibilityIssue.cxx
+++ b/sw/source/core/access/AccessibilityIssue.cxx
@@ -70,6 +70,10 @@ void AccessibilityIssue::gotoIssue() const
                 pWrtShell->HideCursor();
                 pWrtShell->EnterSelFrameMode();
             }
+
+            if (!bSelected && m_eIssueObject == IssueObject::TEXTFRAME)
+                pWrtShell->GotoDrawingObject(m_sObjectID);
+
             if (comphelper::LibreOfficeKit::isActive())
                 pWrtShell->ShowCursor();
         }

Reply via email to