-//bool PartSet_WidgetPoint2dDistance::setValue(ModuleBase_WidgetValue* theValue)
-//{
-// bool isDone = false;
-//
-// if (theValue) {
-// ModuleBase_WidgetValueFeature* aFeatureValue =
-// dynamic_cast<ModuleBase_WidgetValueFeature*>(theValue);
-// if (aFeatureValue) {
-// std::shared_ptr<GeomAPI_Pnt2d> aPnt = aFeatureValue->point();
-// ObjectPtr aObject = aFeatureValue->object();
-// FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aObject);
-// if (aFeature && aPnt) {
-// setPoint(aFeature, aPnt);
-// isDone = true;
-// }
-// }
-// }
-// return isDone;
-//}
+void PartSet_WidgetPoint2dDistance::reset()
+{
+ bool isOk;
+ double aDefValue = QString::fromStdString(getDefaultValue()).toDouble(&isOk);
+
+ ModuleBase_Tools::setSpinValue(mySpinBox, isOk ? aDefValue : 0.0);
+ storeValueCustom();
+}