diff --git a/src/plotcontrolpanel.cpp b/src/plotcontrolpanel.cpp --- a/src/plotcontrolpanel.cpp +++ b/src/plotcontrolpanel.cpp @@ -211,7 +211,10 @@ void PlotControlPanel::onAutoScaleChecke void PlotControlPanel::onYScaleChanged() { - emit yScaleChanged(false, ui->spYmin->value(), ui->spYmax->value()); + if (!autoScale()) + { + emit yScaleChanged(false, ui->spYmin->value(), ui->spYmax->value()); + } } bool PlotControlPanel::autoScale() const @@ -276,7 +279,10 @@ void PlotControlPanel::onIndexChecked(bo void PlotControlPanel::onXScaleChanged() { - emit xScaleChanged(false, ui->spXmin->value(), ui->spXmax->value()); + if (!xAxisAsIndex()) + { + emit xScaleChanged(false, ui->spXmin->value(), ui->spXmax->value()); + } } void PlotControlPanel::setChannelInfoModel(ChannelInfoModel* model)