mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Find Peak Intervals fix 0 distance bug
The find peak intervals added intervals with 0km for start and stop. They now get set appropriately, so peak intervals display correctly when viewed in byDistance on AllPlot.
This commit is contained in:
committed by
Sean Rhea
parent
45d7d3c610
commit
4d3b204f09
@@ -664,7 +664,8 @@ MainWindow::addIntervalForPowerPeaksForSecs(RideFile *ride, int windowSizeSecs,
|
||||
double secs = j.key();
|
||||
double watts = j.value();
|
||||
|
||||
QTreeWidgetItem *peak = new IntervalItem(ride, name+tr(" (%1 watts)").arg((int) round(watts)), secs, secs+windowSizeSecs, 0, 0);
|
||||
QTreeWidgetItem *peak = new IntervalItem(ride, name+tr(" (%1 watts)").arg((int) round(watts)),
|
||||
secs, secs+windowSizeSecs, ride->timeToDistance(secs), ride->timeToDistance(secs+windowSizeSecs));
|
||||
allIntervals->addChild(peak);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user