diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 8581fd303..729e1aed6 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -819,8 +819,6 @@ AllPlotWindow::compareChanged() spanSlider->setLowerValue(spanSlider->minimum()); spanSlider->setUpperValue(spanSlider->maximum()); - // don't show alt/slope - fullPlot->standard->altSlopeCurve->setVisible(false); // redraw for red/no-red title fullPlot->replot(); @@ -1080,9 +1078,6 @@ AllPlotWindow::redrawFullPlot() static_cast(fullPlot->canvas())->setBorderRadius(0); fullPlot->standard->grid->enableY(false); - //don't show the ALT/SLOPE plot here - fullPlot->standard->altSlopeCurve->setVisible(false); - // use the ride to decide if (fullPlot->bydist) fullPlot->setAxisScale(QwtPlot::xBottom, @@ -2262,7 +2257,12 @@ AllPlotWindow::setShowAltSlope(int value) // compare mode selfcontained update if (isCompare()) { + + // transfer changes of setting here (which is more than on/off) also to other plot settings fullPlot->showAltSlopeState = value; + fullPlot->setAltSlopePlotStyle(fullPlot->standard->altSlopeCurve); + allPlot->showAltSlopeState = value; + allPlot->setAltSlopePlotStyle(allPlot->standard->altSlopeCurve); compareChanged(); active = false; return;