summaryrefslogtreecommitdiff
path: root/src/css.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-13 09:36:21 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-01-13 09:36:21 +0100
commit55d8c9c4fa67d40d0f558d521fd651b65219a480 (patch)
tree35c199d6741e071ec6680572bd0bdf87663f43ba /src/css.cc
parentc510c7315258501f7f43902589203b06fbc72b9a (diff)
minor cleanup
Diffstat (limited to 'src/css.cc')
-rw-r--r--src/css.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.cc b/src/css.cc
index 12db8b9c..1897126c 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -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;
}