From d487ba101f168c4fb80eb7bc786ef227da8e2880 Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 2 Apr 2013 23:39:44 +0200 Subject: [PATCH 1/2] RidePlot: Correct min value for altitudes less than zero fixes #527 --- src/AllPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AllPlot.cpp b/src/AllPlot.cpp index ec4f01d77..2bae3d798 100644 --- a/src/AllPlot.cpp +++ b/src/AllPlot.cpp @@ -985,7 +985,7 @@ AllPlot::setYMax() ymin = referencePlot->altCurve->minYValue(); ymax = qMax(ymin + 100, 1.05 * referencePlot->altCurve->maxYValue()); } - ymin = ( qRound(ymin) / 100 ) * 100; + ymin = (ymin < 0 ? -100 : 0) + ( qRound(ymin) / 100 ) * 100; int axisHeight = qRound( plotLayout()->canvasRect().height() ); QFontMetrics labelWidthMetric = QFontMetrics( QwtPlot::axisFont(yLeft) ); From 23a5b77bb0d4e35483f737c922cd71f01215f030 Mon Sep 17 00:00:00 2001 From: Chris Cleeland Date: Wed, 3 Apr 2013 23:00:14 -0500 Subject: [PATCH 2/2] Fix issue #553: take metricDetail->fillCurve from the checkbox state rather than using the pointer. --- src/LTMTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LTMTool.cpp b/src/LTMTool.cpp index f4fe67a84..f090d7843 100644 --- a/src/LTMTool.cpp +++ b/src/LTMTool.cpp @@ -898,7 +898,7 @@ EditMetricDetailDialog::applyClicked() metricDetail->curveStyle = styleMap[curveStyle->currentIndex()]; metricDetail->symbolStyle = symbolMap[curveSymbol->currentIndex()]; metricDetail->penColor = penColor; - metricDetail->fillCurve = fillCurve; + metricDetail->fillCurve = fillCurve->isChecked(); metricDetail->uname = userName->text(); metricDetail->uunits = userUnits->text(); metricDetail->stack = stack->isChecked();