From 266594739f635d438223bb190b45357293589017 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 25 Nov 2008 23:18:04 +0000 Subject: [PATCH] re-index aliases on override of part name too. SVN revision: 37805 --- legacy/edje/src/bin/edje_cc_handlers.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/legacy/edje/src/bin/edje_cc_handlers.c b/legacy/edje/src/bin/edje_cc_handlers.c index d4b9c76382..3cfa028551 100644 --- a/legacy/edje/src/bin/edje_cc_handlers.c +++ b/legacy/edje/src/bin/edje_cc_handlers.c @@ -1265,9 +1265,8 @@ ob_collections_group(void) static void st_collections_group_name(void) { - Edje_Part_Collection_Directory_Entry *de; - Eina_List *l; - Edje_Part_Collection_Directory_Entry *de_other; + Edje_Part_Collection_Directory_Entry *de, *de_other, *alias; + Eina_List *l, *l2; check_arg_count(1); @@ -1295,6 +1294,12 @@ st_collections_group_name(void) for (i = 0, l = edje_file->collection_dir->entries; l; l = eina_list_next(l), i++) { de_other = eina_list_data_get(l); + for (l2 = aliases; l2; l2 = l2->next) + { + alias = l2->data; + if (alias->id == de_other->id) + alias->id = i; + } de_other->id = i; } for (i = 0, l = edje_collections; l; l = eina_list_next(l), i++)