From 2d81fbabd2684a4346343667c5ac18c8f9192f51 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 23 Oct 2018 15:25:29 +0300 Subject: [PATCH] Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0 --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 75b41d6e7..0d2baa34d 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -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 ); -- 2.39.2