From: nds Date: Fri, 29 Apr 2016 14:40:37 +0000 (+0300) Subject: Issue #1037 : correction to improve code(avoid crash) X-Git-Tag: V_2.3.0~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6630c945def886ac13067bb827c2fcfce03be943;p=modules%2Fshaper.git Issue #1037 : correction to improve code(avoid crash) --- diff --git a/src/ModuleBase/ModuleBase_ISelection.cpp b/src/ModuleBase/ModuleBase_ISelection.cpp index 1e6a3e3c4..002528306 100644 --- a/src/ModuleBase/ModuleBase_ISelection.cpp +++ b/src/ModuleBase/ModuleBase_ISelection.cpp @@ -96,8 +96,6 @@ void ModuleBase_ISelection::filterSelectionOnEqualPoints std::set > aVerticesMap; for (; anIt != aLast; anIt++) { - aSubIt = anIt; - aSubIt++; ModuleBase_ViewerPrsPtr aPrs = *anIt; std::shared_ptr 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);