changeset 764:570b3440dc19

minor cleanup
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Tue, 13 Jan 2009 09:36:21 +0100
parents df8153796f48
children f751252a12b0
files src/css.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/css.cc	Tue Jan 13 09:02:41 2009 +0100
+++ b/src/css.cc	Tue Jan 13 09:36:21 2009 +0100
@@ -92,14 +92,14 @@
          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;
                }