mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Typo in HistgramWindow for checking HR/Power ranges
The code in HistogramWindow::rideSelected() to check HR and Power zones have been configured for the ride just selected contained a typo; the power range would be set to HR and the hr range would be set to power. This resulted in the wrong options being shown in the drop down box. This patch fixes this behaviour.
This commit is contained in:
@@ -108,8 +108,8 @@ HistogramWindow::rideSelected()
|
||||
return;
|
||||
|
||||
// get range that applies to this ride
|
||||
powerRange = mainWindow->hrZones()->whichRange(ride->dateTime.date());
|
||||
hrRange = mainWindow->zones()->whichRange(ride->dateTime.date());
|
||||
powerRange = mainWindow->zones()->whichRange(ride->dateTime.date());
|
||||
hrRange = mainWindow->hrZones()->whichRange(ride->dateTime.date());
|
||||
|
||||
// set the histogram data
|
||||
powerHist->setData(ride);
|
||||
|
||||
Reference in New Issue
Block a user