FIX: fixed removing child
This commit is contained in:
parent
d178ccb9a3
commit
9721ab5288
@ -114,9 +114,8 @@ void Tree::BaseNode::deleteChild(const std::shared_ptr<Tree::BaseNode> &c)
|
||||
|
||||
if (it!=children.end())
|
||||
{
|
||||
children.erase(it);
|
||||
}
|
||||
it = children.erase(it);
|
||||
}
|
||||
|
||||
c->setParent(nullptr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user