[Libreoffice-commits] core.git: Branch 'feature/polynomialregression' - chart2/source

Tomaž Vajngerl quikee at gmail.com
Tue Jul 2 09:41:33 PDT 2013


 chart2/source/view/charttypes/VSeriesPlotter.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit d83394781b52fa0a97ceb431646ad48c63437aae
Author: Tomaž Vajngerl <quikee at gmail.com>
Date:   Tue Jul 2 18:38:45 2013 +0200

    Fix problem with intercept = 0.0
    
    Change-Id: Ieeea09d9f93a4405ec6c33c1a646b0940d5d17a2

diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 6cb69a5..d9edbc0 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -987,8 +987,7 @@ void VSeriesPlotter::createRegressionCurvesShapes( VDataSeries& rVDataSeries,
         double aExtrapolateForward = 0.0;
         double aExtrapolateBackward = 0.0;
         sal_Bool aForceIntercept = false;
-        double aInterceptValue;
-        rtl::math::setNan(&aInterceptValue);
+        double aInterceptValue = 0.0;
 
         if ( xProperties.is() )
         {


More information about the Libreoffice-commits mailing list