mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
gridview: Return an empty bitset when selecting only empty space
Return an empty bitset if the user selects exclusively below the last row. No need to calculate selection.
This commit is contained in:
parent
ba909cf901
commit
f3fc8f5b35
@ -481,6 +481,9 @@ gtk_grid_view_get_items_in_rect (GtkListBase *base,
|
||||
|
||||
result = gtk_bitset_new_empty ();
|
||||
|
||||
if (rect->y >= gtk_grid_view_compute_total_height (self))
|
||||
return result;
|
||||
|
||||
n_items = gtk_list_base_get_n_items (base);
|
||||
if (n_items == 0)
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user