[project @ 2004-08-06 21:16:03 by jmb]

Fix bug in merging of selector lists

svn path=/import/netsurf/; revision=1186
This commit is contained in:
John Mark Bell 2004-08-06 21:16:03 +00:00
parent 1d76b7efae
commit e81a96fb53

View File

@ -799,7 +799,8 @@ bool css_merge_rule_lists_internal(struct css_selector *l1, struct css_selector
/** \todo warn user? */
return false;
if (a->specificity < b->specificity) {
if ((a && b && a->specificity < b->specificity) ||
(a && !b)) {
entry = memcpy(entry, a, sizeof(*entry));
a = a->next;
}