mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 19:34:25 +03:00
[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:
parent
80abcd08f9
commit
d586f64316
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user