From: asl Date: Fri, 22 Aug 2014 05:27:08 +0000 (+0000) Subject: refs #430: incorrect coordinates in dump polyline X-Git-Tag: master_20140917~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;p=modules%2Fhydro.git refs #430: incorrect coordinates in dump polyline --- diff --git a/src/HYDROData/HYDROData_PolylineXY.cxx b/src/HYDROData/HYDROData_PolylineXY.cxx index 72423bb3..9711309a 100755 --- a/src/HYDROData/HYDROData_PolylineXY.cxx +++ b/src/HYDROData/HYDROData_PolylineXY.cxx @@ -164,8 +164,10 @@ QStringList HYDROData_PolylineXY::DumpToPython( MapOfTreatedObjects& theTreatedO { const Point& aSectPoint = aSectPointsList.Value( k ); + QString anXStr = QString::number( aSectPoint.X(), 'f', 2 ); + QString anYStr = QString::number( aSectPoint.Y(), 'f', 2 ); aResList << QString( "%1.AddPoint( %2, gp_XY( %3, %4 ) );" ).arg( aPolylineName ) - .arg( i - 1 ).arg( aSectPoint.X() ).arg( aSectPoint.Y() ); + .arg( i - 1 ).arg( anXStr ).arg( anYStr ); } } }