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)
{
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;";
@ -653,7 +653,8 @@ void DumpVector(const QVector<VSAPoint> &points)
out << endl;
}
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
{
@ -665,7 +666,7 @@ void DumpVector(const QVector<VSAPoint> &points)
out << "VSAPoint ";
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))
{