Skip to content

Commit 700f6ef

Browse files
committed
Scene: Remove unnecessary call to wire_system::wire::simplify()
This is unnecessary as the Commands::ItemMove command already simplifies the wire. Fixes #39
1 parent 1d9b4d7 commit 700f6ef

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

qschematic/scene.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -639,14 +639,6 @@ Scene::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
639639
if (const Items::Node* node = dynamic_cast<const Items::Node*>(item.get()); node)
640640
updateNodeConnections(node);
641641
}
642-
643-
for (auto& item : m_wire_manager->wires()) {
644-
Items::Wire* wire = dynamic_cast<Items::Wire*>(item.get());
645-
if (wire) {
646-
// wire->updatePosition();
647-
wire->simplify();
648-
}
649-
}
650642
}
651643
break;
652644
}

0 commit comments

Comments
 (0)