From 24110be3108c802dd02c36f334cea9fa519f4f9c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 24 Aug 2011 15:03:02 +0000 Subject: Fix treeview deselection redraw issue. svn path=/trunk/netsurf/; revision=12662 --- desktop/tree.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'desktop/tree.c') diff --git a/desktop/tree.c b/desktop/tree.c index 451479766..e0193c4da 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -1269,11 +1269,12 @@ void tree_set_node_selected(struct tree *tree, struct node *node, bool all, if (node->selected != selected) { node->selected = selected; if (tree != NULL && tree->redraw) - tree->callbacks->redraw_request(node->box.x, - node->box.y, - node->box.width, - node->data.box.height, - tree->client_data); + tree->callbacks->redraw_request( + node->data.box.x, + node->data.box.y, + node->data.box.width, + node->data.box.height, + tree->client_data); } if (all && (node->child != NULL) && (node->expanded)) tree_set_node_selected(tree, node->child, all, -- cgit v1.2.3