Fix an oversight

This commit is contained in:
Matthias Clasen 2015-06-23 16:46:07 -04:00
parent 7f0606509d
commit 3b97a0b940

View File

@ -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);
}