From 2f6b5dba2ddbd00e87cb565fc3bf35aa6d4c7ba0 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 21 Nov 2013 18:28:01 +0000 Subject: [PATCH] Fencepost error on CP intervals .. caused the meanmax curve for an interval to be recomputed every time even though we'd gone to all those lengths to cache them. --- src/CriticalPowerWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CriticalPowerWindow.cpp b/src/CriticalPowerWindow.cpp index 716e10e6a..0a58466c0 100644 --- a/src/CriticalPowerWindow.cpp +++ b/src/CriticalPowerWindow.cpp @@ -373,7 +373,7 @@ CriticalPowerWindow::intervalSelected() // clear, resize to interval count and set to null intervalCurves.clear(); - for (int i=0; i<= context->athlete->allIntervalItems()->childCount(); i++) intervalCurves << NULL; + for (int i=0; i< context->athlete->allIntervalItems()->childCount(); i++) intervalCurves << NULL; } // which itervals are selected?