From c3df6184aadfe4b2b20a6e197325edc2f96dde89 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 12 Apr 2013 23:29:52 +0100 Subject: [PATCH] Fix PerformanceManager curve disappear .. truncating the front of the sts/lts arrays also truncated the xday array which mean't it didn't start from 0. .. left code in there, but commented out with a comment to explain in case anyone is tempted to add it back in the future. --- src/StressCalculator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/StressCalculator.cpp b/src/StressCalculator.cpp index 25e97aba9..6543cef28 100644 --- a/src/StressCalculator.cpp +++ b/src/StressCalculator.cpp @@ -157,7 +157,10 @@ void StressCalculator::calculateStress(MainWindow *main, QString, const QString ltsramp.remove(0, firstindex); stsramp.remove(0, firstindex); sbvalues.remove(0, firstindex); - xdays.remove(0, firstindex); + //!! no! days always start from 0 + //!! so we do not do the bwlow .. + //!! left commented out as an explanation + // xdays.remove(0, firstindex); list.remove(0, firstindex); }