forked from enlightenment/efl
ethumb: request file information early to avoid loosing them.
SVN revision: 59865
This commit is contained in:
parent
fd331a6864
commit
f8e35bf8de
|
@ -1239,6 +1239,8 @@ _ethumb_image_orient(Ethumb *e, int orientation)
|
||||||
const char *file, *key;
|
const char *file, *key;
|
||||||
|
|
||||||
evas_object_image_size_get(img, &iw, &ih);
|
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);
|
data = evas_object_image_data_get(img, 1);
|
||||||
|
|
||||||
switch (orientation)
|
switch (orientation)
|
||||||
|
@ -1295,8 +1297,6 @@ _ethumb_image_orient(Ethumb *e, int orientation)
|
||||||
return;
|
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));
|
tmp = evas_object_image_add(evas_object_evas_get(img));
|
||||||
evas_object_image_load_size_set(tmp, tw, th);
|
evas_object_image_load_size_set(tmp, tw, th);
|
||||||
evas_object_image_file_set(tmp, file, key);
|
evas_object_image_file_set(tmp, file, key);
|
||||||
|
|
Loading…
Reference in New Issue