From: adv Date: Fri, 25 Oct 2013 06:06:00 +0000 (+0000) Subject: Dump to Python script correction. X-Git-Tag: BR_hydro_v_0_3~82 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d9decc8762a829f1bdc69048fab08122e441ec0;p=modules%2Fhydro.git Dump to Python script correction. --- diff --git a/src/HYDROData/HYDROData_ImmersibleZone.cxx b/src/HYDROData/HYDROData_ImmersibleZone.cxx index 62e34e52..286cbaa3 100644 --- a/src/HYDROData/HYDROData_ImmersibleZone.cxx +++ b/src/HYDROData/HYDROData_ImmersibleZone.cxx @@ -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" ); diff --git a/src/HYDROData/HYDROData_Polyline.cxx b/src/HYDROData/HYDROData_Polyline.cxx index abac653b..fc6d72ce 100755 --- a/src/HYDROData/HYDROData_Polyline.cxx +++ b/src/HYDROData/HYDROData_Polyline.cxx @@ -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 ); }