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

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-10-17 18:11:32 +03:00
parent 7f07463580
commit 4a3ac0b5fd

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))
{ {