Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_PolylineXY.cxx
diff --git
a/src/HYDROData/HYDROData_PolylineXY.cxx
b/src/HYDROData/HYDROData_PolylineXY.cxx
index 72423bb3e76612eeadc53a40b338b6c3f8cc6c6a..9711309a883a4a7c50f99e675f1a9dfab909b87c 100755
(executable)
--- 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 );
{
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 )
aResList << QString( "%1.AddPoint( %2, gp_XY( %3, %4 ) );" ).arg( aPolylineName )
- .arg( i - 1 ).arg( a
SectPoint.X() ).arg( aSectPoint.Y()
);
+ .arg( i - 1 ).arg( a
nXStr ).arg( anYStr
);
}
}
}
}
}
}