Changeset - 655c5c52b942
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 9 years ago 2017-04-01 13:06:48
hy@ozderya.net
fix for scaling settings applied wrong

these slots are also triggered when loading settings thus should be ignored properly
1 file changed with 8 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/plotcontrolpanel.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)