From f8e35bf8dee65ca4b65e527db0d514c2cab40bfb Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 1 Jun 2011 13:04:41 +0000 Subject: [PATCH] ethumb: request file information early to avoid loosing them. SVN revision: 59865 --- legacy/ethumb/src/lib/Ethumb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/ethumb/src/lib/Ethumb.c b/legacy/ethumb/src/lib/Ethumb.c index ba445b7b1c..fb9ce9064a 100644 --- a/legacy/ethumb/src/lib/Ethumb.c +++ b/legacy/ethumb/src/lib/Ethumb.c @@ -1239,6 +1239,8 @@ _ethumb_image_orient(Ethumb *e, int orientation) const char *file, *key; evas_object_image_size_get(img, &iw, &ih); + evas_object_image_load_size_get(img, &tw, &th); + evas_object_image_file_get(img, &file, &key); data = evas_object_image_data_get(img, 1); switch (orientation) @@ -1295,8 +1297,6 @@ _ethumb_image_orient(Ethumb *e, int orientation) return; } - evas_object_image_load_size_get(img, &tw, &th); - evas_object_image_file_get(img, &file, &key); tmp = evas_object_image_add(evas_object_evas_get(img)); evas_object_image_load_size_set(tmp, tw, th); evas_object_image_file_set(tmp, file, key);