[clutter] actor: Fix add_child_at_index() for negative index
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] actor: Fix add_child_at_index() for negative index
- Date: Thu, 9 Feb 2012 11:19:05 +0000 (UTC)
commit a023bb341201b0dbb438efaef8d9d03ce99269de
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Feb 9 02:13:50 2012 +0100
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
clutter/clutter-actor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 7786b0d..c25a5f7 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]