summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-11 18:04:43 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-11 19:38:25 +0100
commit6b67f867cca1cb62ca045b60635f6da0a347c4f2 (patch)
tree726c4b4b59dded0cb2cc2b852636d10170b79505 /chart2
parenttdf#120703 PVS: V560 A part of conditional expression is always true (diff)
downloadcore-6b67f867cca1cb62ca045b60635f6da0a347c4f2.tar.gz
core-6b67f867cca1cb62ca045b60635f6da0a347c4f2.zip
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I1027242192dfd2be4918094d59f2a8f8c8fec041 Reviewed-on: https://gerrit.libreoffice.org/63266 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/AxisHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index 733d716bd945..0a1091a579c1 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -720,7 +720,7 @@ Reference< beans::XPropertySet > AxisHelper::getGridProperties(
else
{
Sequence< Reference< beans::XPropertySet > > aSubGrids( xAxis->getSubGridProperties() );
- if( nSubGridIndex >= 0 && nSubGridIndex < aSubGrids.getLength() )
+ if (nSubGridIndex < aSubGrids.getLength())
xRet.set( aSubGrids[nSubGridIndex] );
}
}