From 22cea706c5c2b9c2673f0dd3516c76d1fe5a513e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 14 Sep 2003 20:31:02 +0000 Subject: [project @ 2003-09-14 20:31:02 by bursa] Fix already loaded object bug. svn path=/import/netsurf/; revision=290 --- render/html.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'render') diff --git a/render/html.c b/render/html.c index 4d8345dcf..1d203f272 100644 --- a/render/html.c +++ b/render/html.c @@ -356,7 +356,6 @@ void html_find_stylesheets(struct content *c, xmlNode *head) void html_fetch_object(struct content *c, char *url, struct box *box) { - struct fetch_data *fetch_data; unsigned int i = c->data.html.object_count; /* add to object list */ @@ -414,7 +413,7 @@ void html_object_callback(content_msg msg, struct content *object, box->min_width = box->max_width = box->width = object->width; } /* invalidate parent min, max widths */ - if (box->parent->max_width != UNKNOWN_MAX_WIDTH) { + if (box->parent && box->parent->max_width != UNKNOWN_MAX_WIDTH) { struct box *b = box->parent; if (b->min_width < object->width) b->min_width = object->width; -- cgit v1.2.3