From 16188e9050918a600389ff919e634886f16cf5ad Mon Sep 17 00:00:00 2001 From: akl Date: Fri, 20 Jun 2014 12:56:25 +0400 Subject: [PATCH] Fix repeated items --- src/GEOM_I/GEOM_Gen_i.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ); + } } } -- 2.39.2