[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/css
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2005-07-08 14:51:50
Message-ID: 1120834310.867119.6865.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 432785 by carewolf:

Looks like a missed an else


 M  +4 -2      cssstyleselector.cpp  


--- trunk/KDE/kdelibs/khtml/css/cssstyleselector.cpp #432784:432785
@@ -791,8 +791,10 @@
             int p = nth.find('+');
             if (p != -1)
                 b = nth.mid(p+1).toInt();
-            p = nth.find('-');
+            else {
+                p = nth.find('-');
                 b = -nth.mid(p+1).toInt();
+            }
         }
         else {
             b = nth.toInt();
@@ -1139,7 +1141,7 @@
                     if (n->isElementNode()) count++;
                     n = n->previousSibling();
                 }
-//                kdDebug(6080) << "NthChild " << count << "=" << sel->string_arg << endl;
+                kdDebug(6080) << "NthChild " << count << "=" << sel->string_arg << endl;
                 if (matchNth(count,sel->string_arg.string()))
                     return true;
             }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic