stop right away if there are no points
Change-Id: I099db29c066392f53935f78f62c122f7176aaea2
This commit is contained in:
@@ -1953,6 +1953,8 @@ void VDataSeriesGroup::calculateYMinAndMaxForCategoryRange(
|
|||||||
if(nStartCategoryIndex<0)
|
if(nStartCategoryIndex<0)
|
||||||
nStartCategoryIndex=0;
|
nStartCategoryIndex=0;
|
||||||
const sal_Int32 nPointCount = getPointCount();//necessary to create m_aListOfCachedYValues
|
const sal_Int32 nPointCount = getPointCount();//necessary to create m_aListOfCachedYValues
|
||||||
|
if(nPointCount <= 0)
|
||||||
|
return;
|
||||||
if (nEndCategoryIndex >= nPointCount)
|
if (nEndCategoryIndex >= nPointCount)
|
||||||
nEndCategoryIndex = nPointCount - 1;
|
nEndCategoryIndex = nPointCount - 1;
|
||||||
if(nEndCategoryIndex<0)
|
if(nEndCategoryIndex<0)
|
||||||
|
Reference in New Issue
Block a user