From 051f2fe5ad0d1d3124fc3cbfe0318bc9693eb9ad Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 25 Jul 2014 15:42:52 +0100 Subject: [PATCH] Altitude on a fullplot scaling .. by making it fill the screen it suggests rides have more ascent than they actually do. So default to a minimum of 0-500m for the altitude scale. --- src/AllPlot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AllPlot.cpp b/src/AllPlot.cpp index 17a8db261..71435736a 100644 --- a/src/AllPlot.cpp +++ b/src/AllPlot.cpp @@ -2019,10 +2019,10 @@ AllPlot::setYMax() if (referencePlot == NULL) { ymin = standard->altCurve->minYValue(); - ymax = qMax(ymin + 100, 1.05 * standard->altCurve->maxYValue()); + ymax = qMax(500.000, 1.05 * standard->altCurve->maxYValue()); } else { ymin = referencePlot->standard->altCurve->minYValue(); - ymax = qMax(ymin + 100, 1.05 * referencePlot->standard->altCurve->maxYValue()); + ymax = qMax(500.000, 1.05 * referencePlot->standard->altCurve->maxYValue()); } ymin = (ymin < 0 ? -100 : 0) + ( qRound(ymin) / 100 ) * 100;