diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-04 20:05:29 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-07-04 20:21:47 +0200 |
commit | d1472c78b6a166e54eb0c87ce3671d4d9bddd747 (patch) | |
tree | 0b6dd1923f34be2e9fbd28fe1c765fe8a979ba60 /chart2/source | |
parent | 5f4a9d91fc2323a38ac2aed54e2074a358ec168e (diff) |
Clear values before calculation of moving average curve.
Change-Id: Ic645195c0fc50a55bb0842fc378a3f329ea2d210
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx b/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx index 1157cbe64179..22d72e4923b9 100644 --- a/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx +++ b/chart2/source/tools/MovingAverageRegressionCurveCalculator.cxx @@ -52,6 +52,9 @@ void SAL_CALL MovingAverageRegressionCurveCalculator::recalculateRegression( const size_t aSize = aValues.first.size(); + aYList.clear(); + aXList.clear(); + for( size_t i = mPeriod - 1; i < aSize; ++i ) { double yAvg; |