Elementary: Load image for image item with proper orientation 41/84441/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 18 Aug 2016 13:12:04 +0000 (22:12 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 18 Aug 2016 13:12:04 +0000 (22:12 +0900)
Summary:
Image files can have orientation information. Elm Entry have to
call evas_object_image_load_orientation_set() for showing image
with proper orientation.

Test Plan: N/A

Reviewers: herdsman, raster, jpeg

Subscribers: cedric

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

Change-Id: I47626055dddb371fbc8e0e10ef2670567fc9d175

src/lib/elm_entry.c

index 7702e43..8953c9b 100644 (file)
@@ -3819,6 +3819,7 @@ _item_get(void *data,
         const char *fname = item + 7;
 
         o = evas_object_image_filled_add(evas_object_evas_get(data));
+        evas_object_image_load_orientation_set(o, EINA_TRUE);
         evas_object_image_file_set(o, fname, NULL);
         if (evas_object_image_load_error_get(o) == EVAS_LOAD_ERROR_NONE)
           {