From: eap Date: Tue, 23 Oct 2018 12:25:29 +0000 (+0300) Subject: Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0 X-Git-Tag: V9_2_0a2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d81fbabd2684a4346343667c5ac18c8f9192f51;p=modules%2Fgeom.git Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0 --- 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 );