set: Fix gtk_set_get_max

This function had an off-by-one error. Thankfully,
our selection tests are thorough enough to catch it.
This commit is contained in:
Matthias Clasen 2020-06-04 21:35:53 -04:00
parent 985b5a052e
commit 17ea03eee2

View File

@ -364,7 +364,7 @@ gtk_set_get_max (GtkSet *set)
r = &g_array_index (set->ranges, Range, set->ranges->len - 1);
return r->first + r->n_items;
return r->first + r->n_items - 1;
}
#if 0