From: akl Date: Fri, 20 Jun 2014 08:56:25 +0000 (+0400) Subject: Fix repeated items X-Git-Tag: V7_5_0a1~50^2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16188e9050918a600389ff919e634886f16cf5ad;p=modules%2Fgeom.git Fix repeated items --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 8f3a876ad..7fa57d213 100755 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -3271,8 +3271,12 @@ void GEOM_Gen_i::GetEntriesToCleanStudy(SALOMEDS::Study_ptr theStudy, char* aSubEntryStr = new char[aStrLen+1]; aSubEntry.ToUTF8CString( aSubEntryStr ); foundIt = aParents.find( aSubEntryStr ); - if ( foundIt == aParents.end() ) // add to sub-objects if it is not in parents list + if ( foundIt == aParents.end() ) { // add to sub-objects if it is not in parents list aChildren.insert( aSubEntryStr ); + foundIt = anOthers.find( aSubEntryStr ); + if ( foundIt != anOthers.end() ) + anOthers.erase( foundIt ); + } } }