edje: Edje_Edit - fix edje_edit_image_usage_list_get() to return usage list with images with USER compression.

Summary:
add recalculating of image id in edje_edit_image_usage_list_get() to fix wrong behavior of this function when the image has USER compression.

@fix

Reviewers: Hermet, cedric, raster, reutskiy.v.v

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1547

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Kateryna Fesyna 2014-10-18 13:47:25 +02:00 committed by Cedric BAIL
parent 7366caab1a
commit dad54f4f75
1 changed files with 4 additions and 0 deletions

View File

@ -7326,6 +7326,10 @@ edje_edit_image_usage_list_get(Evas_Object *obj, const char *name, Eina_Bool fir
if (image_id < 0)
return NULL;
if (edje_edit_image_compression_type_get(obj, name) ==
EDJE_EDIT_IMAGE_COMP_USER)
image_id = -1 - image_id;
it = eina_hash_iterator_data_new(ed->file->collection);
#define ITEM_ADD() \