diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-13 09:36:21 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-01-13 09:36:21 +0100 |
commit | 55d8c9c4fa67d40d0f558d521fd651b65219a480 (patch) | |
tree | 35c199d6741e071ec6680572bd0bdf87663f43ba /src/css.cc | |
parent | c510c7315258501f7f43902589203b06fbc72b9a (diff) |
minor cleanup
Diffstat (limited to 'src/css.cc')
-rw-r--r-- | src/css.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -92,14 +92,14 @@ bool CssSelector::match (Doctree *docTree) { case DESCENDENT: n = node; while (!sel->match (node)) { - if (node == NULL || *notMatchingBefore >= node->num) { + if (node->num < *notMatchingBefore) { *notMatchingBefore = n->num; return false; } node = docTree->parent (node); - if (node == NULL || *notMatchingBefore >= node->num) { + if (node == NULL) { *notMatchingBefore = n->num; return false; } |