From 5d41d9fefcdf18d431c22b7c7ce9aa56ee96016a Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 21 Oct 2018 22:53:31 +0200 Subject: tdf#120703 (PVS): Recurring check. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit V571 The '!pNumRule' condition was already verified in line 2092. Change-Id: I2fc040e9c3053b351b99eb123285ef05f20813f5 Reviewed-on: https://gerrit.libreoffice.org/62160 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/unocore/unosett.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx index eeb39421f96b..585881f14b5d 100644 --- a/sw/source/core/unocore/unosett.cxx +++ b/sw/source/core/unocore/unosett.cxx @@ -2091,7 +2091,7 @@ void SwXNumberingRules::setPropertyValue( const OUString& rPropertyName, const A SwNumRule* pCreatedRule = nullptr; if(!pNumRule) { - if(!pNumRule && pDocShell) + if(pDocShell) { pDocRule = new SwNumRule(*pDocShell->GetDoc()->GetOutlineNumRule()); } -- cgit