summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-04-16 08:55:11 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-16 08:55:11 -0400
commitd31adef9fe10de3e989f29e911661208890176c8 (patch)
tree16383625bde5cee393b7787a9e8d23dda49cc77c
parent82b005875d9640ade71b54a3b3c43a3266f4c355 (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c
index a1bbe2f239..92a2ce29fb 100644
--- a/src/lib/elementary/efl_ui_image.c
+++ b/src/lib/elementary/efl_ui_image.c
@@ -534,7 +534,7 @@ EOLIAN static void
534_efl_ui_image_efl_gfx_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, Eina_Bool smooth) 534_efl_ui_image_efl_gfx_image_smooth_scale_set(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *sd, Eina_Bool smooth)
535{ 535{
536 sd->smooth = smooth; 536 sd->smooth = smooth;
537 if (!sd->edje) evas_object_image_smooth_scale_set(sd->img, smooth); 537 if (sd->img && (!sd->edje)) evas_object_image_smooth_scale_set(sd->img, smooth);
538} 538}
539 539
540EOLIAN static Eina_Bool 540EOLIAN static Eina_Bool