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.
This commit is contained in:
Mark Liversedge
2013-11-21 18:28:01 +00:00
parent c104b53342
commit 2f6b5dba2d

View File

@@ -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?