chart2/source/view/charttypes/Splines.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 43d3fd49b87172fddf5c6a04c1d11ebbdd8d3bf1
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Feb 25 21:47:05 2022 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Feb 28 11:39:40 2022 +0100

    cid#1500452 Using a moved object
    
    and
    
    cid#1500429 Using a moved object
    
    Change-Id: Iecd989345cc043149ff1a2e24da4f6070c014c6b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130550
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/chart2/source/view/charttypes/Splines.cxx 
b/chart2/source/view/charttypes/Splines.cxx
index 89203d3da182..36a580a6ce48 100644
--- a/chart2/source/view/charttypes/Splines.cxx
+++ b/chart2/source/view/charttypes/Splines.cxx
@@ -120,7 +120,7 @@ lcl_SplineCalculation::lcl_SplineCalculation(
           m_fYp1( fY1FirstDerivation ),
           m_fYpN( fYnFirstDerivation ),
           m_nKLow( 0 ),
-          m_nKHigh( rSortedPoints.size() - 1 ),
+          m_nKHigh( m_aPoints.size() - 1 ),
           m_fLastInterpolatedValue(std::numeric_limits<double>::infinity())
 {
     Calculate();
@@ -132,7 +132,7 @@ lcl_SplineCalculation::lcl_SplineCalculation(
           m_fYp1( 0.0 ),  /*dummy*/
           m_fYpN( 0.0 ),  /*dummy*/
           m_nKLow( 0 ),
-          m_nKHigh( rSortedPoints.size() - 1 ),
+          m_nKHigh( m_aPoints.size() - 1 ),
           m_fLastInterpolatedValue(std::numeric_limits<double>::infinity())
 {
     CalculatePeriodic();

Reply via email to