]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Enlarge list of attributes stored in constraint Length for correct verification of...
authorazv <azv@opencascade.com>
Tue, 25 Aug 2015 08:05:20 +0000 (11:05 +0300)
committerazv <azv@opencascade.com>
Tue, 25 Aug 2015 08:06:14 +0000 (11:06 +0300)
src/SketchSolver/SketchSolver_ConstraintLength.cpp
src/SketchSolver/SketchSolver_Group.cpp

index bf519342b2a2de8f74f28683e25e6265a73ecf89..06d854d175ba7a4724bf8ef920249746be45ceea 100644 (file)
@@ -37,6 +37,8 @@ void SketchSolver_ConstraintLength::process()
 void SketchSolver_ConstraintLength::adjustConstraint()
 {
   // No need to store the line, which length is constrained
-  myFeatureMap.clear();
+  // Upd: The line need to be stored to check that constraint
+  //      is changed/unchanged during modifications in GUI
+  //myFeatureMap.clear();
 }
 
index 6b8326b021adf28b6b418e9dbdb9b1bd5c69b754..08f594fe7dc90af4776ea05c7e68de734c64815c 100644 (file)
@@ -625,6 +625,9 @@ void SketchSolver_Group::removeConstraint(ConstraintPtr theConstraint)
         isFullyRemoved = false;
       break;
     }
+  if (aCIter == myConstraints.end())
+    return;
+
   if (isFullyRemoved)
     myConstraints.erase(aCIter);
   else if (aCIter != myConstraints.end() &&