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

New commits:
commit 5f6542e77a3ae8313199ca6704ef050be336a2f0
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Mon Jan 29 22:05:28 2024 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Tue Jan 30 18:11:32 2024 +0100

    tdf#159384 - A11y: fix simulated numbering warning in TOC
    
    Do not complane about simulated numbering warning in TOC
    if its contains a list with numbering.
    
    Change-Id: Ib6a10d18d19cc9cb44ffd5b79e2106af457985d1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162707
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    (cherry picked from commit 24a3f8269e427875fbe8013f88e83fc41b90b33a)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162717

diff --git a/sw/source/core/access/AccessibilityCheck.cxx 
b/sw/source/core/access/AccessibilityCheck.cxx
index e4eaa089ef2f..e515b5cae7ed 100644
--- a/sw/source/core/access/AccessibilityCheck.cxx
+++ b/sw/source/core/access/AccessibilityCheck.cxx
@@ -344,6 +344,10 @@ public:
         if (!pNextTextNode)
             return;
 
+        SwSectionNode* pNd = pCurrentTextNode->FindSectionNode();
+        if (pNd && pNd->GetSection().GetType() == SectionType::ToxContent)
+            return;
+
         for (auto& rPair : m_aNumberingCombinations)
         {
             if (pCurrentTextNode->GetText().startsWith(rPair.first)

Reply via email to