]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Problem with blinking segment during feature movement
authorazv <azv@opencascade.com>
Mon, 2 Jun 2014 08:09:44 +0000 (12:09 +0400)
committerazv <azv@opencascade.com>
Mon, 2 Jun 2014 08:09:44 +0000 (12:09 +0400)
Crash in aborting operation

src/SketchSolver/SketchSolver_ConstraintGroup.cpp

index ce1d5f87ef18ebbf337c59edb3ba412f9a65c67d..7c0bd37845879ea5df3015d550a1645a013eefdb 100644 (file)
@@ -656,10 +656,11 @@ void SketchSolver_ConstraintGroup::splitGroup(std::vector<SketchSolver_Constrain
     }
     else if (anIndexes.size() == 1)
     { // Add entities indexes into the found group
+      aGrEntIter = aGroupsEntities.begin() + anIndexes.front();
       for (int i = 0; i < 4; i++)
         if (aConstrEnt[i] != 0)
           aGrEntIter->insert(aConstrEnt[i]);
-      aGroupsConstr[aGrEntIter - aGroupsEntities.begin()].insert(aConstrIter->h);
+      aGroupsConstr[anIndexes.front()].insert(aConstrIter->h);
       if (aGrEntIter->size() > aGroupsEntities[aMaxNbEntities].size())
         aMaxNbEntities = aGrEntIter - aGroupsEntities.begin();
     }