[project @ 2004-06-25 20:24:06 by bursa]

Fix parsing of invalid color declarations.

svn path=/import/netsurf/; revision=1010
This commit is contained in:
James Bursa 2004-06-25 20:24:06 +00:00
parent 807f7ac284
commit 0df8b0734d
1 changed files with 4 additions and 1 deletions

View File

@ -1255,7 +1255,10 @@ void parse_clear(struct css_style * const s, const struct css_node * const v)
void parse_color(struct css_style * const s, const struct css_node * const v)
{
colour c = parse_colour(v);
colour c;
if (v->next)
return;
c = parse_colour(v);
if (c != CSS_COLOR_NONE)
s->color = c;
}