diff options
Diffstat (limited to 'sc/source/core/tool/charthelper.cxx')
-rw-r--r-- | sc/source/core/tool/charthelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/charthelper.cxx b/sc/source/core/tool/charthelper.cxx index a122be12f155..12e05fa415e9 100644 --- a/sc/source/core/tool/charthelper.cxx +++ b/sc/source/core/tool/charthelper.cxx @@ -258,7 +258,7 @@ void ScChartHelper::SetChartRanges( const uno::Reference< chart2::XChartDocument xLabeledSequence->setLabel( xNewSeq ); } - if( !(nRange<rRanges.getLength()) ) + if( nRange >= rRanges.getLength() ) break; if( xValues.is()) |