diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2023-08-09 21:03:11 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-08-10 08:20:10 +0200 |
commit | 2d0268f5ae6061bc96c00481c9ef3547be300b5a (patch) | |
tree | c21c45991b6be07e88273bf5691ecc58fa891a25 /sw/source/core/access | |
parent | bad71a9d92eeb06916aad820b6b8cb3f1144e082 (diff) |
tdf#156615 - A11Y - fix not clickable warning about empty table cells
Make "Empty table cells for formatting" warning clickable and go to the
table.
Change-Id: I65a258cd559b423692307af9bbbb778754076894
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155532
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sw/source/core/access')
-rw-r--r-- | sw/source/core/access/AccessibilityCheck.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/source/core/access/AccessibilityCheck.cxx b/sw/source/core/access/AccessibilityCheck.cxx index 1561bf04c00c..765af736f4c4 100644 --- a/sw/source/core/access/AccessibilityCheck.cxx +++ b/sw/source/core/access/AccessibilityCheck.cxx @@ -251,8 +251,15 @@ private: } // If more than half of the boxes are empty we can assume that it is used for formatting if (nEmptyBoxes > nBoxCount / 2) - lclAddIssue(m_rIssueCollection, SwResId(STR_TABLE_FORMATTING), - sfx::AccessibilityIssueID::TABLE_FORMATTING); + { + auto pIssue = lclAddIssue(m_rIssueCollection, SwResId(STR_TABLE_FORMATTING), + sfx::AccessibilityIssueID::TABLE_FORMATTING); + + pIssue->setDoc(pTableNode->GetDoc()); + pIssue->setIssueObject(IssueObject::TABLE); + if (const SwTableFormat* pFormat = rTable.GetFrameFormat()) + pIssue->setObjectID(pFormat->GetName()); + } } } |