mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
WGL: Fix attribs_remove_last()
This commit is contained in:
parent
6a240c36ac
commit
3a9f26113f
@ -244,9 +244,11 @@ attribs_add (attribs_t *attribs,
|
||||
static bool
|
||||
attribs_remove_last (attribs_t *attribs)
|
||||
{
|
||||
g_assert (attribs->array->len % 2 == 0);
|
||||
|
||||
if (attribs->array->len > attribs->committed)
|
||||
{
|
||||
g_array_set_size (attribs->array, attribs->array->len - 1);
|
||||
g_array_set_size (attribs->array, attribs->array->len - 2);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user