efl_ui_image: fix warning about calling smooth_scale_set on non-image

Summary: this is triggered during object construction when no image exists

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8617
This commit is contained in:
Mike Blumenkrantz 2019-04-16 08:55:11 -04:00 committed by Christopher Michael
parent 82b005875d
commit d31adef9fe
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ EOLIAN static void
_efl_ui_image_efl_gfx_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, Eina_Bool smooth)
{
sd->smooth = smooth;
if (!sd->edje) evas_object_image_smooth_scale_set(sd->img, smooth);
if (sd->img && (!sd->edje)) evas_object_image_smooth_scale_set(sd->img, smooth);
}
EOLIAN static Eina_Bool