]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #486: Detaching a Coincidence constraint crashes the application
authorazv <azv@opencascade.com>
Thu, 23 Apr 2015 05:46:44 +0000 (08:46 +0300)
committerazv <azv@opencascade.com>
Thu, 23 Apr 2015 05:46:44 +0000 (08:46 +0300)
src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp

index 721913b19af45323648de8f7d0c9246a2ac000d2..2afdbcf0d9ac9d8c67f85b0da750f878cfd81fa1 100644 (file)
@@ -171,6 +171,7 @@ bool SketchSolver_ConstraintCoincidence::remove(ConstraintPtr theConstraint)
       anExtraIt++;
     }
     // Find first non-extra conststraint
+    anExtraIt = myExtraCoincidence.begin();
     while (anExtraIt != myExtraCoincidence.end() && anExtraIt->first == SLVS_E_UNKNOWN)
       anExtraIt++;
     if (anExtraIt != myExtraCoincidence.end()) {