summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-22 08:39:02 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-09-22 08:39:02 (GMT)
commitf653c3314791f2559f7e9faa6f2798244949bd4f (patch)
tree0e1bf18d120c1f75507967b946c75258e2f2de56
parent73adebf2632ca43cfbd3e18ac65e5887714b9280 (diff)
downloadnetsurf-f653c3314791f2559f7e9faa6f2798244949bd4f.tar.gz
netsurf-f653c3314791f2559f7e9faa6f2798244949bd4f.tar.bz2
Treeview: Ensure we know our treeview when doing treeview node collapse.
-rw-r--r--desktop/treeview.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 62e196e..1de4bf9 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -2321,6 +2321,7 @@ nserror treeview_contract(treeview *tree, bool all)
r.x1 = REDRAW_MAX;
r.y1 = tree->root->height;
+ data.tree = tree;
data.only_entries = !all;
for (n = tree->root->children; n != NULL; n = n->next_sib) {