Evas image: reset error after setting a proxy.

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
This commit is contained in:
Tom Hacohen 2012-07-18 14:09:53 +00:00
parent fc73ddb332
commit b22564a2e5
1 changed files with 1 additions and 0 deletions

View 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;