Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed May 14, 2024
1 parent 9807d89 commit 19374bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Editor/DearImGui/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,6 @@ void Editor::PetriView::onHandleInput()
auto action = std::make_unique<NetModifaction>(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));
}
Expand Down
2 changes: 2 additions & 0 deletions src/Net/PetriNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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--)
{
Expand Down

0 comments on commit 19374bb

Please sign in to comment.