From e39fe370dde9695c86b27469a024f0f2dd2229ff Mon Sep 17 00:00:00 2001 From: raster Date: Tue, 1 Nov 2011 02:35:40 +0000 Subject: [PATCH] From: Bluezery Subject: [E-devel] [Patch] elm_map: add image loading error handling I made a bug fix for elm_map. When a downloaded image has an error, , elm_map removes a file and goes on just like download succeeded . However, it is not success, so it should be marked as FALSE for later retry. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64598 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- AUTHORS | 1 + src/lib/elm_map.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 1d4201c..ed2d5bd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -46,3 +46,4 @@ Chanwook Jung Hyoyoung Chang Guillaume "Kuri" Friloux Kim Yunhan +Bluezery diff --git a/src/lib/elm_map.c b/src/lib/elm_map.c index 60ccc7c..df8f0d9 100644 --- a/src/lib/elm_map.c +++ b/src/lib/elm_map.c @@ -1186,7 +1186,12 @@ _tile_update(Grid_Item *gi) gi->download = EINA_FALSE; evas_object_image_file_set(gi->img, gi->file, NULL); if (evas_object_image_load_error_get(gi->img) != EVAS_LOAD_ERROR_NONE) - ecore_file_remove(gi->file); + { + ERR("Image loading error (%s)", gi->file); + ecore_file_remove(gi->file); + gi->have = EINA_FALSE; + return; + } obj_rotate_zoom(gi->wd->obj, gi->img); evas_object_show(gi->img); -- 2.7.4