mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Fix HR Zone summary bug
When you do not have a CP/Zones setup for power the ride summary does not show the HR zone summary. Fixes #427.
This commit is contained in:
@@ -284,8 +284,8 @@ RideSummaryWindow::htmlSummary() const
|
||||
// Time In Zones HR
|
||||
//
|
||||
if (rideItem->numHrZones() > 0) {
|
||||
QVector<double> time_in_zone(rideItem->numZones());
|
||||
for (int i = 0; i < rideItem->numZones(); ++i)
|
||||
QVector<double> time_in_zone(rideItem->numHrZones());
|
||||
for (int i = 0; i < rideItem->numHrZones(); ++i)
|
||||
time_in_zone[i] = metrics.getForSymbol(timeInZonesHR[i]);
|
||||
summary += tr("<h3>Heart Rate Zones</h3>");
|
||||
summary += mainWindow->hrZones()->summarize(rideItem->hrZoneRange(), time_in_zone);
|
||||
|
||||
Reference in New Issue
Block a user