Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0

This commit is contained in:
eap 2018-10-23 15:25:29 +03:00
parent c8522ecee0
commit 2d81fbabd2

View File

@ -2036,10 +2036,12 @@ Standard_Boolean GEOMImpl_IShapesOperations::IsSubShapeBelongsTo( Handle(GEOM_Ob
if ( theObjectIndex > 0 ) {
TopExp::MapShapes( shape, anIndices );
shape = anIndices.FindKey(theObjectIndex);
anIndices.Clear();
}
if ( theSubObjectIndex > 0 ) {
TopExp::MapShapes( subShape, anIndices );
subShape = anIndices.FindKey(theSubObjectIndex);
anIndices.Clear();
}
TopExp::MapShapes( shape, anIndices );