diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/tools/AxisHelper.cxx | 2 |
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] ); } } |