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

New commits:
commit 78dbd341bb5023448af2c3eefceb5a840fd6d8d9
Author:     Balazs Varga <balazs.varga.ext...@allotropia.de>
AuthorDate: Fri Dec 20 14:46:24 2024 +0100
Commit:     Balazs Varga <balazs.varga.ext...@allotropia.de>
CommitDate: Mon Dec 23 09:45:58 2024 +0100

    tdf#164383 - sw a11y fix unnecessary "Avoid simulated captions" warning
    
    for caption frame.
    
    We should not have "Avoid simulated captions" warning about correct 
captions.
    
    Change-Id: I57fe53c5f9e1aa2affe0aec6520d1d6eed5d6990
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178927
    Tested-by: Jenkins
    Tested-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>

diff --git a/sw/qa/core/accessibilitycheck/data/FakeCaptionTest.odt 
b/sw/qa/core/accessibilitycheck/data/FakeCaptionTest.odt
index 9630bfcf73d7..25c164d1626e 100644
Binary files a/sw/qa/core/accessibilitycheck/data/FakeCaptionTest.odt and 
b/sw/qa/core/accessibilitycheck/data/FakeCaptionTest.odt differ
diff --git a/sw/source/core/access/AccessibilityCheck.cxx 
b/sw/source/core/access/AccessibilityCheck.cxx
index 4f14066aee58..9434f5318fff 100644
--- a/sw/source/core/access/AccessibilityCheck.cxx
+++ b/sw/source/core/access/AccessibilityCheck.cxx
@@ -1977,7 +1977,7 @@ public:
         if (const SwNode* pStartFly = pCurrent->FindFlyStartNode())
         {
             const SwFrameFormat* pFormat = pStartFly->GetFlyFormat();
-            if (!pFormat || pFormat->GetAnchor().GetAnchorId() != 
RndStdIds::FLY_AS_CHAR)
+            if (pFormat)
                 return;
         }
 

Reply via email to