- bool isOk;
- double aDefValue = QString::fromStdString(myDefaultValue).toDouble(&isOk);
- mySpinBox->setValue(isOk ? aDefValue : 0.0);
+ if (isComputedDefault()) {
+ return;
+ //if (myFeature->compute(myAttributeID))
+ // restoreValue();
+ }
+ else {
+ bool isOk;
+ double aDefValue = QString::fromStdString(getDefaultValue()).toDouble(&isOk);
+ ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
+ storeValueCustom();
+ }