Evas image: reset error after setting a proxy.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Jul 2012 14:09:53 +0000 (14:09 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 18 Jul 2012 14:09:53 +0000 (14:09 +0000)
evas_object_image_file_set tries to load the file even if the file is NULL,
this in turn makes proxies always report about an error, although there
isn't really one.
I'm not sure whether evas_object_image_file_set should behave the way it
does, but I'm sure the proxy needs to reset the error anyway (because of
potential previous errors).

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@74073 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_image.c

index cefbd05..8b687d4 100644 (file)
@@ -2229,6 +2229,7 @@ _proxy_set(Evas_Object *proxy, Evas_Object *src)
    evas_object_image_file_set(proxy, NULL, NULL);
 
    o->cur.source = src;
+   o->load_error = EVAS_LOAD_ERROR_NONE;
 
    src->proxy.proxies = eina_list_append(src->proxy.proxies, proxy);
    src->proxy.redraw = EINA_TRUE;