From c48e0ce8dc0ac13b31c143be21b1ccc9a92d921d Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 28 Sep 2003 17:37:19 +0000 Subject: [project @ 2003-09-28 17:37:19 by bursa] Fix redirected images which are already loaded. svn path=/import/netsurf/; revision=328 --- render/html.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index 470d8166d..817be418f 100644 --- a/render/html.c +++ b/render/html.c @@ -465,9 +465,12 @@ void html_object_callback(content_msg msg, struct content *object, c->data.html.object[i].content = fetchcache( error, c->url, html_object_callback, c, i, 0, 0, true); - if (c->data.html.object[i].content && - c->data.html.object[i].content->status != CONTENT_STATUS_DONE) + if (c->data.html.object[i].content) { c->active++; + if (c->data.html.object[i].content->status == CONTENT_STATUS_DONE) + html_object_callback(CONTENT_MSG_DONE, + c->data.html.object[i].content, c, i, 0); + } break; case CONTENT_MSG_REFORMAT: -- cgit v1.2.3