-
- bool isOk;
- double aDefValue = QString::fromStdString(myDefaultValue).toDouble(&isOk);
- ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
+ //if (myFeature->compute(myAttributeID))
+ // restoreValue();
+ }
+ else {
+ bool isOk;
+ double aDefValue = QString::fromStdString(getDefaultValue()).toDouble(&isOk);
+ // reset the value just if there is a default value definition in the XML definition
+ // if the double value can not be found by the default value, do nothing
+ if (isOk) {
+ ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
+ storeValueCustom();
+ }
+ }