Salome HOME
Issue #604 Creation of an unexpected line in the Sketcher
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintRigid.cpp
index 6082f2fd41cb57e3d3ee3e517612888cf725ca56..ff52e577437e5f8db91ae8a17077de087fa94395 100644 (file)
@@ -37,8 +37,12 @@ void SketchSolver_ConstraintRigid::process()
   getAttributes(aValue, anEntities);
   if (!myErrorMsg.empty() || (myFeatureMap.empty() && myAttributeMap.empty()))
     return;
+  fixFeature();
+}
 
-  Slvs_hEntity anEntID; 
+void SketchSolver_ConstraintRigid::fixFeature()
+{
+  Slvs_hEntity anEntID;
   if (!myFeatureMap.empty())
     anEntID = myFeatureMap.begin()->second;
   else