Refactoring. Removed unnecessary operations.
(grafted from 19c986add3afc4629ebb1eac49f689e9ecd975ff) --HG-- branch : develop
This commit is contained in:
parent
2211e2b7ee
commit
61ced5d7f5
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user