]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix dump for RestoreGivenSubShapes command gdd/fix_restore_given_subshape_dump
authorGilles DAVID <gilles-g.david@edf.fr>
Tue, 4 Jul 2017 11:09:05 +0000 (13:09 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Tue, 4 Jul 2017 11:09:05 +0000 (13:09 +0200)
src/GEOM_I/GEOM_Gen_i.cc

index 78212462407efdcbea25351051e5b8359daf157f..c908db5d57776a1e10f71567373dc209021fca9e 100644 (file)
@@ -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.";