cedric pushed a commit to branch master.

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

commit dad54f4f75175de7b9cf057bc04cb2b023488330
Author: Kateryna Fesyna <[email protected]>
Date:   Sat Oct 18 13:47:25 2014 +0200

    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 <[email protected]>
---
 src/lib/edje/edje_edit.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 2802ba5..5a3c8ae 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -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() \

-- 


Reply via email to