Fixes #1338 - Extend limits - Companion
This commit is contained in:
@@ -196,6 +196,10 @@ void Channels::refreshExtendedLimits()
|
|||||||
|
|
||||||
minDSB->setMinimum(-model.getChannelsMax());
|
minDSB->setMinimum(-model.getChannelsMax());
|
||||||
maxDSB->setMaximum(model.getChannelsMax());
|
maxDSB->setMaximum(model.getChannelsMax());
|
||||||
|
|
||||||
|
//reset any limit that is bigger than current maximum (dependent on extended limits setting)
|
||||||
|
if ( model.limitData[i].min < -model.getChannelsMax() ) model.limitData[i].min = -model.getChannelsMax();
|
||||||
|
if ( model.limitData[i].max > +model.getChannelsMax() ) model.limitData[i].max = +model.getChannelsMax();
|
||||||
}
|
}
|
||||||
emit modified();
|
emit modified();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user