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

New commits:
commit a3bcf0840dec6f91acbe0fe9bc2f733f2a4ae3c7
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Thu Jun 20 11:13:25 2024 +0200
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Fri Jun 21 17:23:17 2024 +0200

    tdf#159907 - A11Y - Fix highlighted text does not show its attributes
    
    in the Style inspector.
    
    Set the cursor at the end of the highlighted text.
    
    Change-Id: I68af50d5bcf91c3cfe603aeef9e88c088b391590
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169259
    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 1755023fb210..7347559221a6 100644
--- a/sw/source/core/access/AccessibilityIssue.cxx
+++ b/sw/source/core/access/AccessibilityIssue.cxx
@@ -187,13 +187,13 @@ void AccessibilityIssue::gotoIssue() const
         case IssueObject::TEXT:
         {
             SwContentNode* pContentNode = 
TempIssueObject.m_pNode->GetContentNode();
-            SwPosition aPoint(*pContentNode, TempIssueObject.m_nStart);
-            SwPosition aMark(*pContentNode, TempIssueObject.m_nEnd);
+            SwPosition aStart(*pContentNode, TempIssueObject.m_nStart);
+            SwPosition aEnd(*pContentNode, TempIssueObject.m_nEnd);
             pWrtShell->StartAllAction();
             SwPaM* pPaM = pWrtShell->GetCursor();
-            *pPaM->GetPoint() = std::move(aPoint);
+            *pPaM->GetPoint() = std::move(aEnd);
             pPaM->SetMark();
-            *pPaM->GetMark() = std::move(aMark);
+            *pPaM->GetMark() = std::move(aStart);
             pWrtShell->EndAllAction();
 
             // bring issue to attention

Reply via email to