From: adv Date: Thu, 16 Jan 2014 09:58:48 +0000 (+0000) Subject: Point type corrected for python dump. X-Git-Tag: BR_hydro_v_1_0~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=50ae7939fe53b50a54ecb2a66cb2edd01e91fa19;p=modules%2Fhydro.git Point type corrected for python dump. --- diff --git a/src/HYDROData/HYDROData_PolylineXY.cxx b/src/HYDROData/HYDROData_PolylineXY.cxx index f9137e66..fd53ca01 100755 --- a/src/HYDROData/HYDROData_PolylineXY.cxx +++ b/src/HYDROData/HYDROData_PolylineXY.cxx @@ -129,7 +129,7 @@ QStringList HYDROData_PolylineXY::DumpToPython( MapOfTreatedObjects& theTreatedO { const Point& aSectPoint = aSectPointsList.Value( k ); - aResList << QString( "%1.AddPoint( %2, QPointF( %3, %4 ) );" ).arg( aPolylineName ) + aResList << QString( "%1.AddPoint( %2, gp_XY( %3, %4 ) );" ).arg( aPolylineName ) .arg( i - 1 ).arg( aSectPoint.X() ).arg( aSectPoint.Y() ); } } diff --git a/src/HYDROData/HYDROData_ProfileUZ.cxx b/src/HYDROData/HYDROData_ProfileUZ.cxx index 09fc5234..49225298 100755 --- a/src/HYDROData/HYDROData_ProfileUZ.cxx +++ b/src/HYDROData/HYDROData_ProfileUZ.cxx @@ -46,7 +46,7 @@ QStringList HYDROData_ProfileUZ::DumpToPython( MapOfTreatedObjects& theTreatedOb { const Point& aSectPoint = aSectPointsList.Value( k ); - aResList << QString( "%1.AddPoint( 0, QPointF( %2, %3 ) );" ).arg( aName ) + aResList << QString( "%1.AddPoint( 0, gp_XY( %2, %3 ) );" ).arg( aName ) .arg( aSectPoint.X() ).arg( aSectPoint.Y() ); }