From 87a6f9e62829cf0466ef9799e68f4c41b8648186 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 1 Nov 2010 13:26:44 +0000 Subject: [PATCH] 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. --- src/HistogramWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HistogramWindow.cpp b/src/HistogramWindow.cpp index 28aea2fb4..03dc3504d 100644 --- a/src/HistogramWindow.cpp +++ b/src/HistogramWindow.cpp @@ -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);