efl_ui_image_zoomable: fix wrong initial value for zoom mode
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 30 May 2017 11:33:16 +0000 (20:33 +0900)
committerAmitesh Singh <singh.amitesh@gmail.com>
Tue, 30 May 2017 11:33:26 +0000 (20:33 +0900)
Summary:
fix wrong initial value for ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL mode

@fix

Test Plan:
1. set zoom mode of photocam to ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL in text_photocam.c example
2. run elementary_test -to photocam
3. check it is working well

Reviewers: jpeg, cedric, raster, Hermet, singh.amitesh

Reviewed By: singh.amitesh

Differential Revision: https://phab.enlightenment.org/D4921

src/lib/elementary/efl_ui_image_zoomable.c

index 8a93f65..ff1d944 100644 (file)
@@ -1944,7 +1944,7 @@ _efl_ui_image_zoomable_efl_ui_zoom_zoom_set(Eo *obj, Efl_Ui_Image_Zoomable_Data
         if ((sd->size.imw < 1) || (sd->size.imh < 1))
           {
              sd->size.nw = 0;
-             sd->size.nw = 0;
+             sd->size.nh = 0;
           }
         else
           {