Fix treeview deselection redraw issue.
svn path=/trunk/netsurf/; revision=12662
This commit is contained in:
parent
d579559f4d
commit
24110be310
|
@ -1269,11 +1269,12 @@ void tree_set_node_selected(struct tree *tree, struct node *node, bool all,
|
||||||
if (node->selected != selected) {
|
if (node->selected != selected) {
|
||||||
node->selected = selected;
|
node->selected = selected;
|
||||||
if (tree != NULL && tree->redraw)
|
if (tree != NULL && tree->redraw)
|
||||||
tree->callbacks->redraw_request(node->box.x,
|
tree->callbacks->redraw_request(
|
||||||
node->box.y,
|
node->data.box.x,
|
||||||
node->box.width,
|
node->data.box.y,
|
||||||
node->data.box.height,
|
node->data.box.width,
|
||||||
tree->client_data);
|
node->data.box.height,
|
||||||
|
tree->client_data);
|
||||||
}
|
}
|
||||||
if (all && (node->child != NULL) && (node->expanded))
|
if (all && (node->child != NULL) && (node->expanded))
|
||||||
tree_set_node_selected(tree, node->child, all,
|
tree_set_node_selected(tree, node->child, all,
|
||||||
|
|
Loading…
Reference in New Issue