]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
"SetName()" is missed for python script.
authoradv <adv@opencascade.com>
Mon, 9 Sep 2013 10:25:27 +0000 (10:25 +0000)
committeradv <adv@opencascade.com>
Mon, 9 Sep 2013 10:25:27 +0000 (10:25 +0000)
src/HYDROData/HYDROData_Bathymetry.cxx

index 9b9265d0b468267a07630bebb38442347f38dbc6..fbe2dc31c1c24f0cdc7d576cc7084e1a6c38ab87 100644 (file)
@@ -43,6 +43,8 @@ QStringList HYDROData_Bathymetry::DumpToPython( MapOfTreatedObjects& theTreatedO
 
   aResList << QString( "%1 = %2.CreateObject( %3 );" )
               .arg( aBathymetryName ).arg( aDocName ).arg( PYTHON_BATHYMETRY_ID );
+  aResList << QString( "%1.SetName( \"%2\" );" )
+              .arg( aBathymetryName ).arg( aBathymetryName );
 
   QString aFilePath = GetFilePath();
   if ( !aFilePath.isEmpty() )