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) ); diff --git a/src/LTMTool.cpp b/src/LTMTool.cpp index 5a026af4c..7ff3c7b2c 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();