Fixed doubleSpinBox max value when default value=0

This commit is contained in:
matlabbe 2015-12-18 17:42:38 -05:00
parent 0a22ed804c
commit 6dc66d5730

View File

@ -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);
}