Fix repeated items

This commit is contained in:
akl 2014-06-20 12:56:25 +04:00
parent b70248e90b
commit 16188e9050

View File

@ -3271,8 +3271,12 @@ void GEOM_Gen_i::GetEntriesToCleanStudy(SALOMEDS::Study_ptr theStudy,
char* aSubEntryStr = new char[aStrLen+1]; char* aSubEntryStr = new char[aStrLen+1];
aSubEntry.ToUTF8CString( aSubEntryStr ); aSubEntry.ToUTF8CString( aSubEntryStr );
foundIt = aParents.find( 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 ); aChildren.insert( aSubEntryStr );
foundIt = anOthers.find( aSubEntryStr );
if ( foundIt != anOthers.end() )
anOthers.erase( foundIt );
}
} }
} }