Skip to content
Snippets Groups Projects
Commit f1d4d12b authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed bug with root node

parent a138240f
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!94Improved scheduling
Pipeline #42676 passed
......@@ -1258,7 +1258,7 @@ void Aidge::GraphView::updateInputsOutputsDelete(std::shared_ptr<Node> deletedNo
if (deletedNode == mRootNode) {
const std::pair<std::vector<NodePtr>, size_t> ranked_nodes = getRankedNodes();
if(ranked_nodes.second== 0 )
if(ranked_nodes.second== 0 || ranked_nodes.first.size() <= 1)
{
mRootNode = nullptr;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment