From fd556d4df75f186c53769fb0e69b0c02ce8aec84 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 23 Apr 2015 08:46:44 +0300 Subject: [PATCH] Issue #486: Detaching a Coincidence constraint crashes the application --- src/SketchSolver/SketchSolver_ConstraintCoincidence.cpp | 1 + 1 file changed, 1 insertion(+) 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()) { -- 2.39.2