summaryrefslogtreecommitdiff
path: root/desktop/treeview.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-22 09:39:02 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-09-22 09:39:02 +0100
commitf653c3314791f2559f7e9faa6f2798244949bd4f (patch)
tree0e1bf18d120c1f75507967b946c75258e2f2de56 /desktop/treeview.c
parent73adebf2632ca43cfbd3e18ac65e5887714b9280 (diff)
downloadnetsurf-f653c3314791f2559f7e9faa6f2798244949bd4f.tar.gz
netsurf-f653c3314791f2559f7e9faa6f2798244949bd4f.tar.bz2
Treeview: Ensure we know our treeview when doing treeview node collapse.
Diffstat (limited to 'desktop/treeview.c')
-rw-r--r--desktop/treeview.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 62e196ee2..1de4bf968 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) {