]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1037 : correction to improve code(avoid crash)
authornds <nds@opencascade.com>
Fri, 29 Apr 2016 14:40:37 +0000 (17:40 +0300)
committernds <nds@opencascade.com>
Fri, 29 Apr 2016 14:44:48 +0000 (17:44 +0300)
src/ModuleBase/ModuleBase_ISelection.cpp

index 1e6a3e3c4b96df0df0229235e684c28907e5c735..0025283060036b8ad61910cd0c0baa0db9c1b471 100644 (file)
@@ -96,8 +96,6 @@ void ModuleBase_ISelection::filterSelectionOnEqualPoints
 
   std::set<std::shared_ptr<GeomAPI_Vertex> > aVerticesMap;
   for (; anIt != aLast; anIt++) {
-    aSubIt = anIt;
-    aSubIt++;
     ModuleBase_ViewerPrsPtr aPrs = *anIt;
     std::shared_ptr<GeomAPI_Vertex> aGeomPrsVertex = getPresentationVertex(aPrs);
     if (aGeomPrsVertex.get()) {
@@ -118,7 +116,7 @@ void ModuleBase_ISelection::filterSelectionOnEqualPoints
         aFound = aPnt1->isEqual(aPnt2);
       }
       if (aFound) {
-        aCandidatesToRemove.append(*aSubIt);
+        aCandidatesToRemove.append(aPrs);
         continue;
       }
       aVerticesMap.insert(aGeomPrsVertex);