Fix an oversight
authorMatthias Clasen <mclasen@redhat.com>
Tue, 23 Jun 2015 20:46:07 +0000 (16:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 23 Jun 2015 20:46:26 +0000 (16:46 -0400)
gtk/gtkoverlay.c

index f172436b1e8d52356e8a37d500623aab2438d8d7..2abf75dfba291e6b716f9012457686802061949d 100644 (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);
     }