diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-17 13:49:16 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:52 +0100 |
commit | 4860398de42bbaee9bbbdd28ccb16761d5f06e0b (patch) | |
tree | 1e84d13e33bba812c084454bca2902b6a0ec11a3 /source/html/css-apply.c | |
parent | dceae0fa07781c1242ed15420bf3158824932c0a (diff) | |
download | mupdf-4860398de42bbaee9bbbdd28ccb16761d5f06e0b.tar.xz |
html: Fix adjacency selector matching.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r-- | source/html/css-apply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c index 63a4941c..8284c5ac 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -349,7 +349,7 @@ match_selector(struct selector *sel, fz_xml *node) if (sel->combine == '+') { fz_xml *prev = fz_xml_prev(node); - while (prev && !fz_xml_tag(prev) && fz_xml_prev(prev)) + while (prev && !fz_xml_tag(prev)) prev = fz_xml_prev(prev); if (!prev) return 0; |