sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 95e7d7c2715b061409c84e1b7d2e1b750c47f8c7 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Oct 22 19:28:34 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 22 23:27:40 2024 +0200 tdf#163486: PVS: Expression is always true V560 A part of conditional expression is always true: pStyleSheetProperties. Change-Id: Ia6f0ecbf80d8de488695441c86b0b34e23c6348a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175444 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx index 75e758c40523..68b5c37aa2f1 100644 --- a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx @@ -2323,7 +2323,7 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap, con pParaContext->Insert(PROP_PARA_LEFT_MARGIN, uno::Any(nParaLeftMargin), /*bOverwrite=*/false); // Override right margin value with value from current style, if any - if (pStyleSheetProperties && pStyleSheetProperties->isSet(PROP_PARA_RIGHT_MARGIN)) + if (pStyleSheetProperties->isSet(PROP_PARA_RIGHT_MARGIN)) nParaRightMargin = pStyleSheetProperties->getProperty(PROP_PARA_RIGHT_MARGIN)->second.get<sal_Int32>(); pParaContext->Insert(PROP_PARA_RIGHT_MARGIN, uno::Any(nParaRightMargin), /*bOverwrite=*/false);