edje_cc_out: update the id of set images.
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 29 Oct 2014 12:04:37 +0000 (21:04 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Wed, 29 Oct 2014 12:06:36 +0000 (21:06 +0900)
Before it removes unused images, it updates ids.
For the set images, it should be done.

@fix

src/bin/edje/edje_cc_out.c

index d503663..fceb974 100755 (executable)
@@ -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