diff options
author | David Tardon <dtardon@redhat.com> | 2016-05-16 10:00:17 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-05-16 10:01:55 +0200 |
commit | ef2f40f5583875ca86f41747b79e4385c997601f (patch) | |
tree | 30047cb8b15e1c0bb223aad6bb6c18cc1f133e08 /chart2 | |
parent | d25342d332162f9f28230665bfb14adac3643f3e (diff) |
stop right away if there are no points
Change-Id: I099db29c066392f53935f78f62c122f7176aaea2
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index 2f736785b503..8af02b0c1762 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -1953,6 +1953,8 @@ void VDataSeriesGroup::calculateYMinAndMaxForCategoryRange( if(nStartCategoryIndex<0) nStartCategoryIndex=0; const sal_Int32 nPointCount = getPointCount();//necessary to create m_aListOfCachedYValues + if(nPointCount <= 0) + return; if (nEndCategoryIndex >= nPointCount) nEndCategoryIndex = nPointCount - 1; if(nEndCategoryIndex<0) |