sw/source/core/access/accmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3c0cd84287dc94858d9c92830d60eda59c626df3 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 15:45:42 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 diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index ab44250bca8c..4dfe6284beb8 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1612,7 +1612,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 )