summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-17 13:49:16 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commit4860398de42bbaee9bbbdd28ccb16761d5f06e0b (patch)
tree1e84d13e33bba812c084454bca2902b6a0ec11a3 /source/html/css-apply.c
parentdceae0fa07781c1242ed15420bf3158824932c0a (diff)
downloadmupdf-4860398de42bbaee9bbbdd28ccb16761d5f06e0b.tar.xz
html: Fix adjacency selector matching.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r--source/html/css-apply.c2
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;