mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-01 21:01:31 +03:00
[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:
parent
1d76b7efae
commit
e81a96fb53
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user