From 9501c9e68d336f894470d45a317f9a2123dcca80 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 19 Jan 2019 15:12:03 +0000 Subject: [PATCH] Treeview: Consider search bar for redraw area calculation. --- desktop/treeview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/treeview.c b/desktop/treeview.c index 5bbac1e25..27f6e22b6 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -3441,7 +3441,7 @@ static bool treeview_delete_selection(treeview *tree, struct rect *rect) sw.purpose = TREEVIEW_WALK_DELETE_SELECTION; sw.data.redraw.required = false; sw.data.redraw.rect = rect; - sw.current_y = 0; + sw.current_y = treeview__get_search_height(tree); sw.tree = tree; treeview_walk_internal(tree, tree->root, @@ -3474,7 +3474,7 @@ static bool treeview_propagate_selection(treeview *tree, struct rect *rect) sw.purpose = TREEVIEW_WALK_PROPAGATE_SELECTION; sw.data.redraw.required = false; sw.data.redraw.rect = rect; - sw.current_y = 0; + sw.current_y = treeview__get_search_height(tree); sw.tree = tree; treeview_walk_internal(tree, tree->root,