| commit | 15f0871015b3d80cdf952f06891364f37adec90c | [log] |
|---|---|---|
| author | Balazs Varga <balazs.varga.extern@allotropia.de> | Wed Aug 09 21:03:11 2023 +0200 |
| committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | Thu Aug 10 10:34:19 2023 +0200 |
| tree | 470c8329ea26202502a84a2b8366a20596da81b7 | |
| parent | 7ae758b3c00e4b190290bb59da32cc31fb9feb28 [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> (cherry picked from commit 1770cab0674295a44ddd5002c189530021e0836d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155481
diff --git a/sw/source/core/access/AccessibilityCheck.cxx b/sw/source/core/access/AccessibilityCheck.cxx index 191d5d1..a24bdb8 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()); } } }