mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Fix repeated items
This commit is contained in:
parent
b70248e90b
commit
16188e9050
@ -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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user