From 125e77e0b6cd593fbe51382fbf0257bd68818268 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Tue, 4 Jul 2017 13:09:05 +0200 Subject: [PATCH] Fix dump for RestoreGivenSubShapes command --- src/GEOM_I/GEOM_Gen_i.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 782124624..c908db5d5 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -1362,10 +1362,10 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapes(SALOMEDS::Study_ptr theStudy, anObjFun->SetDescription( "" ); if ( j > 0 ) pd << ", "; - pd << aGeomObj; + pd << aGeomObj->GetName(); j++; } - pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj << ", " << "["; + pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj->GetName() << ", " << "["; //i = 0; nb = theArgs.length(); j = 0; i = 0; nb = anOutArgs->length(); j = 0; for ( ; i < nb; i++ ) @@ -1377,7 +1377,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapes(SALOMEDS::Study_ptr theStudy, HANDLE_NAMESPACE(GEOM_BaseObject) aGeomObj = _impl->GetObject(anObj->GetStudyID(), anObj->GetEntry()); if ( j > 0 ) pd << ", "; - pd << aGeomObj; + pd << aGeomObj->GetName(); j++; } pd <<"]" << ", " <<"GEOM."; @@ -1908,10 +1908,10 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(SALOMEDS::Study_ptr theStu anObjFun->SetDescription( "" ); if ( j > 0 ) pd << ", "; - pd << aGeomObj; + pd << aGeomObj->GetName(); j++; } - pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj << ", " << "["; + pd <<"]" << " = geompy.RestoreGivenSubShapes(" << aMainObj->GetName() << ", " << "["; i = 0; nb = theArgs.length(); j = 0; for ( ; i < nb; i++ ) { @@ -1921,7 +1921,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(SALOMEDS::Study_ptr theStu HANDLE_NAMESPACE(GEOM_BaseObject) aGeomObj = _impl->GetObject(anObj->GetStudyID(), anObj->GetEntry()); if ( j > 0 ) pd << ", "; - pd << aGeomObj; + pd << aGeomObj->GetName(); j++; } pd <<"]" << ", " <<"GEOM."; -- 2.39.2