+ else {
+ bool isOk;
+ double aDefValue = QString::fromStdString(getDefaultValue()).toDouble(&isOk);
+ ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
+ storeValueCustom();
+ }
+}
+
+bool ModuleBase_WidgetDoubleValue::storeValueCustom() const
+{
+ DataPtr aData = myFeature->data();
+ AttributeDoublePtr aReal = aData->real(attributeID());
+ aReal->setValue(mySpinBox->value());
+ updateObject(myFeature);