summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-10-17 14:12:21 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-10-17 21:01:03 +0200
commit5ddac2a6e263a43741e2843068631e0d84561bd1 (patch)
treec6b14e5cb0012976b834bf5cc585c0e800a6760e /chart2/source
parentad09bf747794ee591c62b5ce4e369cfb039c86c5 (diff)
tdf#163486: PVS: identical conditional expressions
V581: The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 422, 426. Change-Id: Ib2bcd4b170b827c325628e0e7eabe6a19ca399ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175086 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/tools/AxisHelper.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index bd87f95b195e..72e818e81395 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -422,9 +422,8 @@ void AxisHelper::showGrid( sal_Int32 nDimensionIndex, sal_Int32 nCooSysIndex, bo
if(!xAxis.is())
{
//hhhh todo create axis without axis visibility
- }
- if(!xAxis.is())
return;
+ }
if( bMainGrid )
AxisHelper::makeGridVisible( xAxis->getGridProperties2() );