Сцепление за точку с наибольшим tag-ом
This commit is contained in:
@@ -35,7 +35,7 @@ Point* Canvas::findPointAt(QPointF pos, qreal tolerance)
|
||||
|
||||
if (dist_P2P(p1, pos) <= tolerance)
|
||||
temp = line->p1_ref;
|
||||
else if (dist_P2P(p2, pos) <= tolerance)
|
||||
if (dist_P2P(p2, pos) <= tolerance)
|
||||
temp = line->p2_ref;
|
||||
}
|
||||
return temp;
|
||||
|
||||
Reference in New Issue
Block a user