edje_cc_out: update the id of set images.

Before it removes unused images, it updates ids.
For the set images, it should be done.

@fix
This commit is contained in:
Jaehwan Kim 2014-10-29 21:04:37 +09:00
parent 5954289c6c
commit dfdc31cae7
1 changed files with 19 additions and 0 deletions

View File

@ -2587,6 +2587,25 @@ _data_image_id_update(Eina_List *images_unused_list)
}
}
}
for (i = 0; i < edje_file->image_dir->sets_count; i++)
{
Eina_List *entries, *l;
Edje_Image_Directory_Set_Entry *entry;
entries = edje_file->image_dir->sets[i].entries;
EINA_LIST_FOREACH(entries, l, entry)
{
EINA_LIST_FOREACH(images_unused_list, l3, iui)
{
if (entry->id == iui->old_id)
{
entry->id = iui->new_id;
break;
}
}
}
}
}
void