chart2/source/view/charttypes/VSeriesPlotter.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit ef2f40f5583875ca86f41747b79e4385c997601f
Author: David Tardon <dtar...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to