From cf3edf5345bb54cd891ecaa87914b22f8fc1deeb Mon Sep 17 00:00:00 2001 From: Damien Date: Mon, 18 Mar 2013 21:58:22 +0100 Subject: [PATCH] Correct min value for speed axis --- src/AllPlot.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/AllPlot.cpp b/src/AllPlot.cpp index ff003544f..ec4f01d77 100644 --- a/src/AllPlot.cpp +++ b/src/AllPlot.cpp @@ -872,7 +872,9 @@ AllPlot::setYMax() setAxisLabelAlignment(yLeft,Qt::AlignVCenter); } if (hrCurve->isVisible() || cadCurve->isVisible() || (!useMetricUnits && tempCurve->isVisible()) || balanceLCurve->isVisible()) { - double ymin, ymax = 0; + double ymin = 0; + double ymax = 0; + QStringList labels; if (hrCurve->isVisible()) { labels << tr("BPM"); @@ -933,7 +935,8 @@ AllPlot::setYMax() setAxisLabelAlignment(yLeft2,Qt::AlignVCenter); } if (speedCurve->isVisible() || (useMetricUnits && tempCurve->isVisible()) || torqueCurve->isVisible()) { - double ymin, ymax = 0; + double ymin = 0; + double ymax = 0; QStringList labels;