mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix for crash where ride time is shorter than smoothing. In particular, the
sample ride is shorter than the default smoothing value.
This commit is contained in:
@@ -90,7 +90,8 @@ AllPlot::recalc()
|
||||
double *smoothSpeed = new double[rideTimeSecs + 1];
|
||||
double *smoothCad = new double[rideTimeSecs + 1];
|
||||
double *smoothTime = new double[rideTimeSecs + 1];
|
||||
for (int secs = 0; secs < smooth; ++secs) {
|
||||
for (int secs = 0; ((secs < smooth)
|
||||
&& (secs < rideTimeSecs)); ++secs) {
|
||||
smoothWatts[secs] = 0.0;
|
||||
smoothHr[secs] = 0.0;
|
||||
smoothSpeed[secs] = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user