summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-12-19 11:31:01 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-12-20 12:39:26 +0100
commit46290af4bfe820944e27f86dbb6608a12ad70202 (patch)
treeb80f046293edf9133216f307555a7c64708e83eb
parent468d47bdf44a772e989a0adbeb5bb097e3cb4f31 (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.odtbin25882 -> 25379 bytes
-rw-r--r--sw/source/core/access/AccessibilityCheck.cxx3
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
index 405fd6647a08..e6dffec6225e 100644
--- a/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt
+++ b/sw/qa/core/accessibilitycheck/data/AccessibilityTests1.odt
Binary files 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);