}
if (!isError) {
myDoc->SetUndoLimit(UNDO_LIMIT);
+ // to avoid the problem that feature is created in the current, not this, document
+ Model_Session::get()->setActiveDocument(anApp->getDocument(myID));
synchronizeFeatures();
}
return !isError;
<validator id="SketchPlugin_DistanceAttr" parameters="ConstraintEntityA"/>
</feature_or_attribute_selector>
<point_selector id="ConstraintFlyoutValuePnt" internal="1" obligatory="0"/>
- <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed"/>
+ <doublevalue_editor label="Value" tooltip="Constraint value" id="ConstraintValue" default="computed">
+ <validator id="GeomValidators_Positive"/>
+ </doublevalue_editor>
<validator id="PartSet_DistanceValidator"/>
</feature>