[project @ 2005-05-22 12:44:44 by bursa]

Fix crash when stylesheets fail to load.

svn path=/import/netsurf/; revision=1730
This commit is contained in:
James Bursa 2005-05-22 12:44:44 +00:00
parent ff74a126f7
commit 6bf7e4a318

View File

@ -637,8 +637,9 @@ bool html_find_stylesheets(struct content *c, xmlNode *head)
css_set_origin(c->data.html.stylesheet_content[
STYLESHEET_STYLE], CSS_ORIGIN_AUTHOR);
for (i = STYLESHEET_START; i != c->data.html.stylesheet_count; i++)
css_set_origin(c->data.html.stylesheet_content[i],
CSS_ORIGIN_AUTHOR);
if (c->data.html.stylesheet_content[i])
css_set_origin(c->data.html.stylesheet_content[i],
CSS_ORIGIN_AUTHOR);
c->data.html.working_stylesheet = css_make_working_stylesheet(
c->data.html.stylesheet_content,