Экстренный фикс
Не менялось положение точек при объединении 3 линий и более
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user