Refactoring. Removed unnecessary operations.

(grafted from 19c986add3afc4629ebb1eac49f689e9ecd975ff)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-10-19 19:48:36 +03:00
parent 2211e2b7ee
commit 61ced5d7f5

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
{