diff options
author | James Bursa <james@netsurf-browser.org> | 2003-09-14 20:31:02 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-09-14 20:31:02 +0000 |
commit | 22cea706c5c2b9c2673f0dd3516c76d1fe5a513e (patch) | |
tree | 8d41882bfc048ed7167d4b80288413c5ec6e80ca /render | |
parent | 83f6cd25ab339588c3c438b45ef814d515f3addd (diff) | |
download | netsurf-22cea706c5c2b9c2673f0dd3516c76d1fe5a513e.tar.gz netsurf-22cea706c5c2b9c2673f0dd3516c76d1fe5a513e.tar.bz2 |
[project @ 2003-09-14 20:31:02 by bursa]
Fix already loaded object bug.
svn path=/import/netsurf/; revision=290
Diffstat (limited to 'render')
-rw-r--r-- | render/html.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |