The storeValue should happens only in the creation mode.
Erroneous case is the constraint lenght is moved by the edit start. The (0,0) point value is set to the feature by the operation start, point 2d control activation.
QIntList aModes;
aModes << TopAbs_VERTEX;
myWorkshop->moduleConnector()->activateSubShapesSelection(aModes);
- // the control value is stored to the mode by the focus in on the widget
- // we need the value is initialized in order to enable the apply button in the property panel
- storeValue();
+ if (!isEditingMode()) {
+ // the control value is stored to the mode by the focus in on the widget
+ // we need the value is initialized in order to enable the apply button in the property panel
+ // it should happens only in the creation mode because during edition all fields are filled
+ storeValue();
+ }
}
void PartSet_WidgetPoint2D::deactivate()