diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-01-06 13:25:29 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-01-06 13:25:29 +0000 |
commit | d586f643161ff243ca57926a203cf51b6a8b35cf (patch) | |
tree | c5002c7b2bfd6ecc64687b08c17622b7e44a9504 | |
parent | 80abcd08f9702f4e96a106b3252b5f1c595e63a9 (diff) | |
download | netsurf-d586f643161ff243ca57926a203cf51b6a8b35cf.tar.gz netsurf-d586f643161ff243ca57926a203cf51b6a8b35cf.tar.bz2 |
[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
-rw-r--r-- | desktop/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index ab75f1714..921ed8042 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -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; |