summarylogtreecommitdiffstats
path: root/lvstsheet.diff
blob: 8ba9bcd0a69517f9cdaf732182ae9576d68f5699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- old/crengine/src/lvstsheet.cpp	2017-08-30 17:48:31.000000000 +0200
+++ new/crengine/src/lvstsheet.cpp	2017-11-25 22:17:10.000000000 +0100
@@ -967,7 +967,7 @@
             for (;;)
             {
                 node = node->getParentNode();
-                if (node->isNull())
+                if (node->isNull()||node->isRoot())
                     return false;
                 if (node->getNodeId() == _id)
                     return true;
@@ -1045,8 +1045,8 @@
         {
             lString16 val = node->getAttributeValue(attr_class);
             val.lowercase();
-//            if ( val.length() != _value.length() )
-//                return false;
+            if ( val.length() != _value.length() )
+                return false;
             //CRLog::trace("attr_class: %s %s", LCSTR(val), LCSTR(_value) );
             return val == _value;
         }