forked from enlightenment/efl
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:
parent
82b005875d
commit
d31adef9fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue