]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #93 fix: Avoided crash on parallel constraint
authorazv <azv@opencascade.com>
Tue, 12 Aug 2014 08:06:38 +0000 (12:06 +0400)
committerazv <azv@opencascade.com>
Tue, 12 Aug 2014 08:06:38 +0000 (12:06 +0400)
src/SketchSolver/SketchSolver_ConstraintManager.cpp

index d9e10c85e2a214d98e4fc3ac276aae62a0448476..a87f3e69b0ce019e07e6619ba852cf098a60a2a8 100644 (file)
@@ -10,6 +10,7 @@
 #include <ModelAPI_Data.h>
 #include <ModelAPI_Events.h>
 #include <ModelAPI_Object.h>
+#include <ModelAPI_ResultConstruction.h>
 
 #include <SketchPlugin_Constraint.h>
 
@@ -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<std::string>::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())