Экстренный фикс

Не менялось положение точек при объединении 3 линий и более
This commit is contained in:
2025-12-15 19:52:23 +03:00
parent 104097dfc7
commit f719694580

View File

@@ -449,8 +449,15 @@ void Canvas::mouseMoveEvent(QMouseEvent* event)
if (draggedPoint) {
QPointF pos = UCS_POSITION - dragOffset;
auto coincidentGroup = getCoincidentGroup(draggedPoint);
// TODO
for (Point* pair : points) {
if (areCoincident(draggedPoint, pair)) {
*pair->x = pos.x();
*pair->y = pos.y();
}
}
auto coincidentGroup = getCoincidentGroup(draggedPoint);
for (Point* pt : coincidentGroup) {
*pt->x = pos.x();
*pt->y = pos.y();