Fixed a bug in tree

This commit is contained in:
Joel Holdsworth 2009-01-20 23:17:40 +00:00
parent b0f56c070d
commit d42bc4ea90

View file

@ -892,7 +892,7 @@ iter tree<T, tree_node_allocator>::prepend_child(iter position)
position.node->last_child=tmp;
}
tmp->next_sibling=position.node->first_child;
position.node->prev_child=tmp;
position.node->first_child=tmp;
tmp->prev_sibling=0;
return tmp;
}