furrymyad pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=39e67b500cbb942a890f1950af7675667fda0adb

commit 39e67b500cbb942a890f1950af7675667fda0adb
Author: Vitalii Vorobiov <[email protected]>
Date:   Fri Dec 9 11:50:43 2016 +0200

    edje_pick: use correct id's for exported groups
    
    @fix
---
 src/bin/edje/edje_pick.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bin/edje/edje_pick.c b/src/bin/edje/edje_pick.c
index 12b8964..1c48ee7 100644
--- a/src/bin/edje/edje_pick.c
+++ b/src/bin/edje/edje_pick.c
@@ -1376,10 +1376,11 @@ static int
 _edje_pick_collection_process(Edje_Part_Collection *edc, Edje_File *edf, 
Edje_File *o)
 {
    /* Update all IDs, NAMES in current collection */
-   static int current_collection_id = 0;
+   Edje_Part_Collection_Directory_Entry *ce;
+
+   ce = eina_hash_find(o->collection, edc->part);
+   edc->id = ce->id;
 
-   edc->id = current_collection_id;
-   current_collection_id++;
    _edje_pick_images_process(edc, edf, o);
    _edje_pick_programs_process(edc);
 

-- 



Reply via email to