summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_image.c
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2017-12-20 16:40:23 +0200
committerCedric BAIL <cedric@osg.samsung.com>2017-12-20 09:40:52 -0800
commit4bde4ceada472ce3674496b5733519f8180a00e5 (patch)
tree0cf8c69a1af0df04a84fc01a2a3168651b191109 /src/lib/evas/canvas/efl_canvas_image.c
parentb9401d7e0a550af0c2b8a8c78a9da9ca04a2718d (diff)
Canvas image: fix endless call to 'load_error_get'
Fixes a bug introduce with c8c4572d7005d19cf50f8c53bb7408606cf3ee40. My guess is that the true intention was to query the Efl.File mixin first, and the check the specific load_error. Basically a call to 'efl_file_load_error_get' on an Efl.Canvas.Image triggered this.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/efl_canvas_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c
index 4a1de7cc97..0a71b98da0 100644
--- a/src/lib/evas/canvas/efl_canvas_image.c
+++ b/src/lib/evas/canvas/efl_canvas_image.c
@@ -58,7 +58,7 @@ Efl_Image_Load_Error
58_evas_image_load_error_get(const Eo *eo_obj) 58_evas_image_load_error_get(const Eo *eo_obj)
59{ 59{
60 Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS); 60 Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
61 Efl_Image_Load_Error r = efl_file_load_error_get(eo_obj); 61 Efl_Image_Load_Error r = efl_file_load_error_get(efl_cast(eo_obj, EFL_FILE_MIXIN));
62 62
63 if (r != EFL_IMAGE_LOAD_ERROR_NONE) return r; 63 if (r != EFL_IMAGE_LOAD_ERROR_NONE) return r;
64 return o->load_error; 64 return o->load_error;