[Libreoffice-commits] core.git: chart2/source
David Tardon
dtardon at redhat.com
Mon May 16 08:02:25 UTC 2016
chart2/source/view/charttypes/VSeriesPlotter.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit ef2f40f5583875ca86f41747b79e4385c997601f
Author: David Tardon <dtardon at redhat.com>
Date: Mon May 16 10:00:17 2016 +0200
stop right away if there are no points
Change-Id: I099db29c066392f53935f78f62c122f7176aaea2
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 2f73678..8af02b0 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)
More information about the Libreoffice-commits
mailing list