From: azv Date: Tue, 12 Aug 2014 08:06:38 +0000 (+0400) Subject: Issue #93 fix: Avoided crash on parallel constraint X-Git-Tag: V_0.4.4~109^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d4952e404c1799c23165eb476ad2ecd45b233af;p=modules%2Fshaper.git Issue #93 fix: Avoided crash on parallel constraint --- 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())