diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2024-12-19 11:31:01 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-12-20 12:39:26 +0100 |
commit | 46290af4bfe820944e27f86dbb6608a12ad70202 (patch) | |
tree | b80f046293edf9133216f307555a7c64708e83eb | |
parent | 468d47bdf44a772e989a0adbeb5bb097e3cb4f31 (diff) |
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.extern@allotropia.de>
(cherry picked from commit 519282418137861144341da8b7a5759068104405)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178881
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt | bin | 25882 -> 25379 bytes | |||
-rw-r--r-- | sw/source/core/access/AccessibilityCheck.cxx | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt b/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt Binary files differindex 405fd6647a08..e6dffec6225e 100644 --- a/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt +++ b/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt 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); |