Evas image: reset error after setting a proxy.
authorTom Hacohen <tom@stosb.com>
Wed, 18 Jul 2012 14:09:53 +0000 (14:09 +0000)
committerTom Hacohen <tom@stosb.com>
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).

SVN revision: 74073

legacy/evas/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;