[project @ 2006-01-06 13:25:29 by rjw]

Update last child reference on delinking. This will fix the bug where parts of the tree became inaccessible after insertion.

svn path=/import/netsurf/; revision=1992
This commit is contained in:
Richard Wilson 2006-01-06 13:25:29 +00:00
parent 80abcd08f9
commit d586f64316

View File

@ -828,6 +828,8 @@ void tree_delink_node(struct node *node) {
if (node->parent) {
if (node->parent->child == node)
node->parent->child = node->next;
if (node->parent->last_child == node)
node->parent->last_child = node->previous;
if (node->parent->child == NULL)
node->parent->expanded = false;
node->parent = NULL;