stop right away if there are no points

Change-Id: I099db29c066392f53935f78f62c122f7176aaea2
This commit is contained in:
David Tardon 2016-05-16 10:00:17 +02:00
parent d25342d332
commit ef2f40f558

View File

@ -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)