Improve precision of dump functions. It should be close to what debugger gives.

(grafted from d94873822ea085f90db8ad6b857dd041cd9654c6)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-10-17 18:11:32 +03:00
parent 2c881cd516
commit c47193540b

View File

@ -619,7 +619,7 @@ void DumpVector(const QVector<QPointF> &points)
for(auto point : points) for(auto point : points)
{ {
out << QString("points += QPointF(%1, %2);").arg(point.x()).arg(point.y()) << endl; out << QString("points += QPointF(%1, %2);").arg(point.x(), 0, 'f', 15).arg(point.y(), 0, 'f', 15) << endl;
} }
out << endl << "return points;"; out << endl << "return points;";
@ -653,7 +653,8 @@ void DumpVector(const QVector<VSAPoint> &points)
out << endl; out << endl;
} }
type = Default; type = Default;
out << QString("points += VSAPoint(%1, %2);").arg(point.x()).arg(point.y()) << endl; out << QString("points += VSAPoint(%1, %2);").arg(point.x(), 0, 'f', 15).arg(point.y(), 0, 'f', 15)
<< endl;
} }
else else
{ {
@ -665,7 +666,7 @@ void DumpVector(const QVector<VSAPoint> &points)
out << "VSAPoint "; out << "VSAPoint ";
firstPoint = false; firstPoint = false;
} }
out << QString("p = VSAPoint(%1, %2);").arg(point.x()).arg(point.y()) << endl; out << QString("p = VSAPoint(%1, %2);").arg(point.x(), 0, 'f', 15).arg(point.y(), 0, 'f', 15) << endl;
if (not VFuzzyComparePossibleNulls(point.GetSABefore(), -1)) if (not VFuzzyComparePossibleNulls(point.GetSABefore(), -1))
{ {