Skip to content

Commit

Permalink
Merge pull request #209 from PahaKul/groupNodeBugFix
Browse files Browse the repository at this point in the history
bug fix: moving node within a group multiple times
  • Loading branch information
cneben authored Nov 19, 2023
2 parents 661f5b2 + 0daa7e4 commit 88bd225
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gtpo/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ auto graph<graph_base_t, node_t,
if (node == nullptr ||
group == nullptr)
return false;
if (node->get_group() == group)
return true;
node->set_group(group);
container_adapter<nodes_t>::insert(node, group->get_nodes());
return true;
Expand Down

0 comments on commit 88bd225

Please sign in to comment.