Сцепление за точку с наибольшим tag-ом

This commit is contained in:
2025-12-10 20:38:24 +03:00
parent 512e873682
commit dc2f17bb19

View File

@@ -35,7 +35,7 @@ Point* Canvas::findPointAt(QPointF pos, qreal tolerance)
if (dist_P2P(p1, pos) <= tolerance) if (dist_P2P(p1, pos) <= tolerance)
temp = line->p1_ref; temp = line->p1_ref;
else if (dist_P2P(p2, pos) <= tolerance) if (dist_P2P(p2, pos) <= tolerance)
temp = line->p2_ref; temp = line->p2_ref;
} }
return temp; return temp;