From: Gilles DAVID Date: Tue, 4 Jul 2017 11:09:05 +0000 (+0200) Subject: Fix dump for RestoreGivenSubShapes command X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=125e77e0b6cd593fbe51382fbf0257bd68818268;p=modules%2Fgeom.git Fix dump for RestoreGivenSubShapes command --- 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.";