This commit is contained in:
Raphael Coeffic
2019-09-01 09:34:46 +02:00
committed by Bertrand Songis
parent 2f69ee6cbf
commit 3fa82c388a
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -82,12 +82,14 @@ void LimitsGroup::updateMinMax(int max)
{
if (spinbox->maximum() == 0) {
spinbox->setMinimum(-max * displayStep);
gvarGroup->setMinimum(-max);
if (value < -max) {
value = -max;
}
}
if (spinbox->minimum() == 0) {
spinbox->setMaximum(max * displayStep);
gvarGroup->setMaximum(max);
if (value > max) {
value = max;
}