From 81c9f5cdf82909d0aebd2c491c50fa7516cc80b7 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 22 Aug 2014 05:27:08 +0000 Subject: [PATCH] refs #430: incorrect coordinates in dump polyline --- src/HYDROData/HYDROData_PolylineXY.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } } } -- 2.39.2