]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Bug: IsSubShapeBelongsTo() always returns true if theSubObjectIndex > 0
authoreap <eap@opencascade.com>
Tue, 23 Oct 2018 12:25:29 +0000 (15:25 +0300)
committereap <eap@opencascade.com>
Tue, 23 Oct 2018 12:25:29 +0000 (15:25 +0300)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 75b41d6e77cf20fcefaaefa4206101304b3e444d..0d2baa34d94cc548724e598a4adda3438f9e2e40 100644 (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 );