chart2/source/view/main/VDataSeries.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit fad158c87e99eeac9bcecca2d699e800878d5c82
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Fri Jul 24 18:23:35 2015 +0200

    Revert "tdf#76649 Skip NaN initial values for min and max"
    
    This patch should not go in without a test!!
    
    This reverts commit ae5ff039f697016a9c04b8f99c24f4e620ce4c65.

diff --git a/chart2/source/view/main/VDataSeries.cxx 
b/chart2/source/view/main/VDataSeries.cxx
index 6667cbb..3efa477 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -520,13 +520,9 @@ void VDataSeries::getMinMaxXValue(double& fMin, double& 
fMax) const
 
     if(aValuesX.getLength() > 0)
     {
-        sal_Int32 i = 0;
-        while ( ::rtl::math::isNan( aValuesX[i] ) && i < aValuesX.getLength() )
-            i++;
-        if ( i < aValuesX.getLength() )
-            fMax = fMin = aValuesX[i++];
+        fMax = fMin = aValuesX[0];
 
-        for ( ; i < aValuesX.getLength(); i++)
+        for (sal_Int32 i = 1; i < aValuesX.getLength(); i++)
         {
             const double aValue = aValuesX[i];
             if ( aValue > fMax)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to