listview: Return an empty bitset when selecting only empty space

Return an empty bitset if the user selects exclusively below the last
row.
This commit is contained in:
Corey Berla 2022-07-25 16:59:35 -07:00
parent aba2d994e6
commit e14b84ff67

View File

@ -377,6 +377,9 @@ gtk_list_view_get_items_in_rect (GtkListBase *base,
result = gtk_bitset_new_empty ();
if (rect->y >= gtk_list_view_get_list_height (self))
return result;
n_items = gtk_list_base_get_n_items (base);
if (n_items == 0)
return result;