summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-14 17:21:13 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-14 18:03:48 +0900
commit8bb03d8170219211be16974792d55f579806aa0d (patch)
tree4615463ce9435f99eecd03b0c7adef7ac3d8224a
parentfc82281603e814368584c06cd6de22f4155e9d06 (diff)
evas: Avoid invalid call to efl_file
If not legacy, the object does not accept files, resulting in an ERR message.
-rw-r--r--src/lib/evas/canvas/efl_canvas_proxy.c3
1 files changed, 2 insertions, 1 deletions
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)
219 Evas_Object_Protected_Data *proxy = efl_data_scope_get(eo_proxy, EFL_CANVAS_OBJECT_CLASS); 219 Evas_Object_Protected_Data *proxy = efl_data_scope_get(eo_proxy, EFL_CANVAS_OBJECT_CLASS);
220 Evas_Image_Data *o = efl_data_scope_get(eo_proxy, EFL_CANVAS_IMAGE_INTERNAL_CLASS); 220 Evas_Image_Data *o = efl_data_scope_get(eo_proxy, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
221 221
222 efl_file_set(eo_proxy, NULL, NULL); 222 if (o->legacy_type)
223 efl_file_set(eo_proxy, NULL, NULL);
223 224
224 EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, proxy->proxy, Evas_Object_Proxy_Data, proxy_write) 225 EINA_COW_WRITE_BEGIN(evas_object_proxy_cow, proxy->proxy, Evas_Object_Proxy_Data, proxy_write)
225 proxy_write->is_proxy = EINA_TRUE; 226 proxy_write->is_proxy = EINA_TRUE;