Refactoring. Removed unnecessary operations.
--HG-- branch : release
This commit is contained in:
parent
695bcea062
commit
7939811c64
|
@ -477,9 +477,7 @@ QPointF VGObject::CorrectDistortion(const QPointF &t, const QPointF &p1, const Q
|
||||||
{
|
{
|
||||||
if (not VFuzzyComparePoints(p1, p2))
|
if (not VFuzzyComparePoints(p1, p2))
|
||||||
{
|
{
|
||||||
QLineF line = QLineF(p1, p2);
|
return VGObject::ClosestPoint(QLineF(p1, p2), t);
|
||||||
line.setLength(QLineF(p1, VGObject::ClosestPoint(QLineF(p1, p2), t)).length());
|
|
||||||
return line.p2();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user