]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix invalid Python dump generated by GetShapesOnBoxIDs(), GetShapesOnShapeIDs(),...
authorvsr <vsr@opencascade.com>
Wed, 26 Dec 2012 13:47:25 +0000 (13:47 +0000)
committervsr <vsr@opencascade.com>
Wed, 26 Dec 2012 13:47:25 +0000 (13:47 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index b07cdf84335d657ac3689a25c05eccd08bc23263..41de518cb0f250ba4d5c09ba155e31713ab28199 100644 (file)
@@ -2302,7 +2302,7 @@ Handle(TColStd_HSequenceOfInteger)
   Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShape,theBox)->GetLastFunction();
 
   // Make a Python command
-  GEOM::TPythonDump(aFunction)
+  GEOM::TPythonDump(aFunction, /*append=*/true)
     << "listShapesOnBoxIDs = geompy.GetShapesOnBoxIDs("
     << theBox << ", "
     << theShape << ", "
@@ -2475,7 +2475,7 @@ Handle(TColStd_HSequenceOfInteger)
     GEOM::GetCreatedLast(theShape,theCheckShape)->GetLastFunction();
 
   // Make a Python command
-  GEOM::TPythonDump(aFunction)
+  GEOM::TPythonDump(aFunction, /*append=*/true)
     << "listShapesOnBoxIDs = geompy.GetShapesOnShapeIDs("
     << theCheckShape << ", "
     << theShape << ", "
@@ -4671,7 +4671,7 @@ Handle(TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations::GetSameIDs
     Handle(GEOM_Function) aFunction = GEOM::GetCreatedLast(theShapeWhere,theShapeWhat)->GetLastFunction();
 
   // Make a Python command
-  GEOM::TPythonDump(aFunction)
+  GEOM::TPythonDump(aFunction, /*append=*/true)
     << "listSameIDs = geompy.GetSameIDs("
     << theShapeWhere << ", "
     << theShapeWhat << ")";