jpeg pushed a commit to branch master.

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

commit 8bb03d8170219211be16974792d55f579806aa0d
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Dec 14 17:21:13 2017 +0900

    evas: Avoid invalid call to efl_file
    
    If not legacy, the object does not accept files, resulting in an ERR
    message.
---
 src/lib/evas/canvas/efl_canvas_proxy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/efl_canvas_proxy.c 
b/src/lib/evas/canvas/efl_canvas_proxy.c
index ab46ff391e..60049ecaaf 100644
--- a/src/lib/evas/canvas/efl_canvas_proxy.c
+++ b/src/lib/evas/canvas/efl_canvas_proxy.c
@@ -219,7 +219,8 @@ _evas_image_proxy_set(Evas_Object *eo_proxy, Evas_Object 
*eo_src)
    Evas_Object_Protected_Data *proxy = efl_data_scope_get(eo_proxy, 
EFL_CANVAS_OBJECT_CLASS);
    Evas_Image_Data *o = efl_data_scope_get(eo_proxy, 
EFL_CANVAS_IMAGE_INTERNAL_CLASS);
 
-   efl_file_set(eo_proxy, NULL, NULL);
+   if (o->legacy_type)
+     efl_file_set(eo_proxy, NULL, NULL);
 
    EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, proxy->proxy, 
Evas_Object_Proxy_Data, proxy_write)
      proxy_write->is_proxy = EINA_TRUE;

-- 


Reply via email to