mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
Fix an oversight
This commit is contained in:
parent
7f0606509d
commit
3b97a0b940
@ -584,7 +584,7 @@ gtk_overlay_reorder_overlay (GtkOverlay *overlay,
|
||||
}
|
||||
else
|
||||
{
|
||||
new_link = g_slist_nth (priv->children, index);
|
||||
new_link = g_slist_nth (priv->children, position);
|
||||
index = MIN (position, g_slist_length (priv->children) - 1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user