sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt |binary sw/source/core/access/AccessibilityCheck.cxx | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 46290af4bfe820944e27f86dbb6608a12ad70202 Author: Balazs Varga <balazs.varga.ext...@allotropia.de> AuthorDate: Thu Dec 19 11:31:01 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Dec 20 12:39:26 2024 +0100 tdf#164091 - sw fix Accessibility sidebar gives warning about decorative marked shapes We should not have warning about missing alternative text in case of decorative marked shapes. Change-Id: Ibac7f152886d7db004039eede9b657fa5e84ae87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178795 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de> (cherry picked from commit 519282418137861144341da8b7a5759068104405) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178881 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt b/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt index 405fd6647a08..e6dffec6225e 100644 Binary files a/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt and b/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt differ diff --git a/sw/source/core/access/AccessibilityCheck.cxx b/sw/source/core/access/AccessibilityCheck.cxx index 60c5d8c83534..4f14066aee58 100644 --- a/sw/source/core/access/AccessibilityCheck.cxx +++ b/sw/source/core/access/AccessibilityCheck.cxx @@ -2653,7 +2653,8 @@ void AccessibilityCheck::checkObject(SwNode* pCurrent, SdrObject* pObject) || nObjId == SdrObjKind::Media || nObjId == SdrObjKind::Group || nObjId == SdrObjKind::Graphic || nInv == SdrInventor::FmForm) { - if (pObject->GetTitle().isEmpty() && pObject->GetDescription().isEmpty()) + if (!pObject->IsDecorative() && pObject->GetTitle().isEmpty() + && pObject->GetDescription().isEmpty()) { const OUString& sName = pObject->GetName(); OUString sIssueText = SwResId(STR_NO_ALT).replaceAll("%OBJECT_NAME%", sName);