Fixed doubleSpinBox max value when default value=0
This commit is contained in:
parent
0a22ed804c
commit
6dc66d5730
@ -423,7 +423,7 @@ void ParametersToolBox::addParameter(QVBoxLayout * layout,
|
||||
widget->setDecimals(3);
|
||||
}
|
||||
|
||||
if(def>=0.0)
|
||||
if(def>0.0)
|
||||
{
|
||||
widget->setMaximum(def*1000000.0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user