forked from AuroraMiddleware/gtk
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:
parent
985b5a052e
commit
17ea03eee2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user