From 2d4952e404c1799c23165eb476ad2ecd45b233af Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 12 Aug 2014 12:06:38 +0400 Subject: [PATCH] Issue #93 fix: Avoided crash on parallel constraint --- src/SketchSolver/SketchSolver_ConstraintManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SketchSolver/SketchSolver_ConstraintManager.cpp b/src/SketchSolver/SketchSolver_ConstraintManager.cpp index d9e10c85e..a87f3e69b 100644 --- a/src/SketchSolver/SketchSolver_ConstraintManager.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintManager.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include @@ -116,7 +117,7 @@ void SketchSolver_ConstraintManager::processEvent(const Events_Message* theMessa // Find SketchPlugin_Sketch::ID() in groups. The constraint groups should be updated when an object removed from Sketch std::set::const_iterator aFGrIter; for (aFGrIter = aFeatureGroups.begin(); aFGrIter != aFeatureGroups.end(); aFGrIter++) - if (aFGrIter->compare(SketchPlugin_Sketch::ID()) == 0) + if (aFGrIter->compare(ModelAPI_ResultConstruction::group()) == 0) break; if (aFGrIter != aFeatureGroups.end()) -- 2.39.2