]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Dump to Python script correction.
authoradv <adv@opencascade.com>
Fri, 25 Oct 2013 06:06:00 +0000 (06:06 +0000)
committeradv <adv@opencascade.com>
Fri, 25 Oct 2013 06:06:00 +0000 (06:06 +0000)
src/HYDROData/HYDROData_ImmersibleZone.cxx
src/HYDROData/HYDROData_Polyline.cxx

index 62e34e52dac2b379f3ca14a138a0c81d4f5a38a3..286cbaa39a9df099166b418d0d2221189f2f7acb 100644 (file)
@@ -60,8 +60,6 @@ QStringList HYDROData_ImmersibleZone::DumpToPython( MapOfTreatedObjects& theTrea
   aResList << QString( "%1.SetBorderColor( border_color );" ).arg( aZoneName );
   aResList << QString( "" );
 
-  aResList << QString( "" );
-
   Handle(HYDROData_Bathymetry) aRefBathymetry = GetBathymetry();
   setPythonReferenceObject( theTreatedObjects, aResList, aRefBathymetry, "SetBathymetry" );
 
index abac653b3d138eecfc95ddddebfaf99e4d32bf60..fc6d72ceb7f3f1951185c7ba519b2f168d309f41 100755 (executable)
@@ -78,7 +78,7 @@ QStringList HYDROData_Polyline::DumpToPython( MapOfTreatedObjects& theTreatedObj
   aResList << QString( "" );
 
   int aDim = GetDimension();
-  aResList << QString( "%1.setDimension( %2 );" )
+  aResList << QString( "%1.SetDimension( %2 );" )
               .arg( aPolylineName ).arg( aDim );
 
   // Set polilyne data
@@ -121,8 +121,9 @@ QStringList HYDROData_Polyline::DumpToPython( MapOfTreatedObjects& theTreatedObj
       aResList << QString( "%1.append( %2 );" )
                   .arg( aPolylineDataName ).arg( aPolylineSectName );
     }
+    aResList << QString( "" );
 
-    aResList << QString( "%1.setPolylineData( %2 );" )
+    aResList << QString( "%1.SetPolylineData( %2 );" )
                   .arg( aPolylineName ).arg( aPolylineDataName );
   }