sw/source/core/access/accmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit eb1065017c2f1fb9999cb6c6c4afd6f29ecaf3d6 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Oct 21 13:31:28 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Oct 21 17:40:58 2024 +0200 tdf#163486: PVS: identical sub-expressions Since commit b7d2a9c824aca1a4dfd1b857a3620e73ade6bc0d Author: Michael Weghorn <m.wegh...@posteo.de> Date: Fri Oct 27 17:55:59 2023 +0200 tdf#135586 sw a11y: Use BLOCK_QUOTE role for "Block Quotation" para V501 There are identical sub-expressions 'xParaContext->getAccessibleRole() == AccessibleRole::PARAGRAPH' to the left and to the right of the '||' operator. Change-Id: I2c0c843c492aeffb2b1506821796d39804d01343 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175329 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins (cherry picked from commit 3c0cd84287dc94858d9c92830d60eda59c626df3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175316 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 704dac005566..434edc8c83b7 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1615,7 +1615,7 @@ void SwAccessibleMap::DoInvalidateShapeSelection(bool bInvalidateFocusMode /*=fa uno::Reference< XAccessible > xPara = pAccShape->getAccessibleParent(); uno::Reference< XAccessibleContext > xParaContext = xPara->getAccessibleContext(); if (xParaContext.is() && (xParaContext->getAccessibleRole() == AccessibleRole::PARAGRAPH - || xParaContext->getAccessibleRole() == AccessibleRole::PARAGRAPH)) + || xParaContext->getAccessibleRole() == AccessibleRole::BLOCK_QUOTE)) { SwAccessibleParagraph* pAccPara = static_cast< SwAccessibleParagraph *>(xPara.get()); if (m_setParaAdd.count(pAccPara) == 0 )