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:
Mark Liversedge
2010-11-01 13:26:44 +00:00
parent 9d9b447044
commit 87a6f9e628

View File

@@ -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);