diff --git a/src/Editor/DearImGui/Editor.cpp b/src/Editor/DearImGui/Editor.cpp index e85302b..e833214 100644 --- a/src/Editor/DearImGui/Editor.cpp +++ b/src/Editor/DearImGui/Editor.cpp @@ -1553,7 +1553,6 @@ void Editor::PetriView::onHandleInput() auto action = std::make_unique(m_editor); action->before(m_editor.m_net); m_editor.m_net.removeNode(*node); - // FIXME: TimedEventGraph: supprimer aussi les places action->after(m_editor.m_net); m_editor.m_history.add(std::move(action)); } diff --git a/src/Net/PetriNet.cpp b/src/Net/PetriNet.cpp index 3a61522..d7bb56e 100644 --- a/src/Net/PetriNet.cpp +++ b/src/Net/PetriNet.cpp @@ -550,6 +550,8 @@ bool Net::removeArc(Arc const& a) //------------------------------------------------------------------------------ bool Net::removeArc(Node const& from, Node const& to) { +// Supprimer les arcs qui touchent la place supprimee + size_t i = m_arcs.size(); while (i--) {