sw/qa/core/accessibilitycheck/data/HighlightTest.odt |binary
 sw/source/core/access/AccessibilityCheck.cxx         |    2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit be405c3f1843a381e951fcc63e4cc9d76002e73d
Author:     offtkp <parisop...@gmail.com>
AuthorDate: Mon Dec 5 15:21:54 2022 +0200
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Wed Dec 21 13:33:33 2022 +0000

    tdf#152378 a11y: Don't trigger check for empty highlighted text
    
    Do not trigger accessibility check test for empty highlighted text
    Also added an empty line in the test document to check that it's no
    longer detected after this patch
    
    Change-Id: I173a61fc25c0ea4cf81642a7ea37a762b3b583f4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143673
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

diff --git a/sw/qa/core/accessibilitycheck/data/HighlightTest.odt 
b/sw/qa/core/accessibilitycheck/data/HighlightTest.odt
index da4821681502..a8f13e142ce1 100644
Binary files a/sw/qa/core/accessibilitycheck/data/HighlightTest.odt and 
b/sw/qa/core/accessibilitycheck/data/HighlightTest.odt differ
diff --git a/sw/source/core/access/AccessibilityCheck.cxx 
b/sw/source/core/access/AccessibilityCheck.cxx
index ac558a44c69e..7a51b8edabc1 100644
--- a/sw/source/core/access/AccessibilityCheck.cxx
+++ b/sw/source/core/access/AccessibilityCheck.cxx
@@ -464,7 +464,7 @@ private:
         // If not character background color, try paragraph background color
         if (aBackgroundColor == COL_AUTO)
             aBackgroundColor = nParaBackColor;
-        else
+        else if (!xTextRange->getString().isEmpty())
         {
             auto pIssue
                 = lclAddIssue(m_rIssueCollection, 
SwResId(STR_TEXT_FORMATTING_CONVEYS_MEANING),

Reply via email to