Canvas image: fix endless call to 'load_error_get'
Fixes a bug introduce with c8c4572d70
.
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.
This commit is contained in:
parent
b9401d7e0a
commit
4bde4ceada
|
@ -58,7 +58,7 @@ Efl_Image_Load_Error
|
||||||
_evas_image_load_error_get(const Eo *eo_obj)
|
_evas_image_load_error_get(const Eo *eo_obj)
|
||||||
{
|
{
|
||||||
Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
|
Evas_Image_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_IMAGE_INTERNAL_CLASS);
|
||||||
Efl_Image_Load_Error r = efl_file_load_error_get(eo_obj);
|
Efl_Image_Load_Error r = efl_file_load_error_get(efl_cast(eo_obj, EFL_FILE_MIXIN));
|
||||||
|
|
||||||
if (r != EFL_IMAGE_LOAD_ERROR_NONE) return r;
|
if (r != EFL_IMAGE_LOAD_ERROR_NONE) return r;
|
||||||
return o->load_error;
|
return o->load_error;
|
||||||
|
|
Loading…
Reference in New Issue