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:
parent
74821f61c0
commit
a023bb3412
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user