From: jfa Date: Fri, 1 Apr 2011 08:27:17 +0000 (+0000) Subject: Fix error with GetExistingSubObjects X-Git-Tag: Start_BR_19998_21191 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c68152cd011d3ec6fb0cdfa17fa3ce5327c00c4d;p=modules%2Fgeom.git Fix error with GetExistingSubObjects --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 9b4f0e9b8..3620ecf3a 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -937,7 +937,7 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetExistingSubO GEOM::TPythonDump pd (aMainShape, /*append=*/true); pd << "[" << anAsciiList.ToCString(); pd << "] = geompy.GetExistingSubObjects("; - pd << theShape << ", " << (int)theGroupsOnly << ")"; + pd << theShape << ", " << (bool)theGroupsOnly << ")"; SetErrorCode(OK); @@ -1031,6 +1031,9 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::MakeExplode // because GEOM_SubShapeDriver will build TopTools_IndexedMapOfShape // on the main shape for each being calculated sub-shape separately. aFunction->SetValue(aValue); + + // Put this subshape in the list of subshapes of theMainShape + aMainShape->AddSubShapeReference(aFunction); } if (!anObj.IsNull()) {