Refactoring. Removed unnecessary operations.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-10-19 19:48:36 +03:00
parent 695bcea062
commit 7939811c64

View File

@ -477,9 +477,7 @@ QPointF VGObject::CorrectDistortion(const QPointF &t, const QPointF &p1, const Q
{
if (not VFuzzyComparePoints(p1, p2))
{
QLineF line = QLineF(p1, p2);
line.setLength(QLineF(p1, VGObject::ClosestPoint(QLineF(p1, p2), t)).length());
return line.p2();
return VGObject::ClosestPoint(QLineF(p1, p2), t);
}
else
{