From: azv Date: Thu, 23 Apr 2015 05:46:44 +0000 (+0300) Subject: Issue #486: Detaching a Coincidence constraint crashes the application X-Git-Tag: V_1.2.0~110^2~3^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd556d4df75f186c53769fb0e69b0c02ce8aec84;p=modules%2Fshaper.git Issue #486: Detaching a Coincidence constraint crashes the application --- diff --git a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp index 721913b19..2afdbcf0d 100644 --- a/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp @@ -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()) {