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

New commits:
commit 54c158ff35ab5a0b5fa538562755638e052d51f2
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Mon Aug 14 19:05:35 2023 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Tue Aug 15 15:01:18 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>

diff --git a/sw/source/core/access/AccessibilityIssue.cxx 
b/sw/source/core/access/AccessibilityIssue.cxx
index 9da1952f95bc..6810cc05cdfc 100644
--- a/sw/source/core/access/AccessibilityIssue.cxx
+++ b/sw/source/core/access/AccessibilityIssue.cxx
@@ -74,6 +74,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