actor: Fix add_child_at_index() for negative index

There is a typo in the check for a negative index: the index variable
should be index_, not index - unfortunately, the latter can still be
resolved to index(3), so compiler and linker are perfectly happy.

https://bugzilla.gnome.org/show_bug.cgi?id=669730
This commit is contained in:
Florian Müllner 2012-02-09 02:13:50 +01:00
parent 74821f61c0
commit a023bb3412

View File

@ -9907,7 +9907,7 @@ insert_child_at_index (ClutterActor *self,
child->priv->prev_sibling = NULL;
child->priv->next_sibling = tmp;
}
else if (index < 0)
else if (index_ < 0)
{
ClutterActor *tmp = self->priv->last_child;