Fixed a bug in tree
This commit is contained in:
parent
b0f56c070d
commit
d42bc4ea90
1 changed files with 1 additions and 1 deletions
|
|
@ -892,7 +892,7 @@ iter tree<T, tree_node_allocator>::prepend_child(iter position)
|
||||||
position.node->last_child=tmp;
|
position.node->last_child=tmp;
|
||||||
}
|
}
|
||||||
tmp->next_sibling=position.node->first_child;
|
tmp->next_sibling=position.node->first_child;
|
||||||
position.node->prev_child=tmp;
|
position.node->first_child=tmp;
|
||||||
tmp->prev_sibling=0;
|
tmp->prev_sibling=0;
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue