forked from enlightenment/efl
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:
parent
7366caab1a
commit
dad54f4f75
|
@ -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() \
|
||||
|
|
Loading…
Reference in New Issue