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

List:       kde-commits
Subject:    koffice/kword
From:       Laurent Montel <montel () kde ! org>
Date:       2004-11-13 21:49:14
Message-ID: 20041113214914.89D5316DE2 () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Fix my error


  M +6 -6      kwvariable.cc   1.167


--- koffice/kword/kwvariable.cc  #1.166:1.167
@@ -97,5 +97,5 @@ KoVariable* KWVariableCollection::loadOa
     if ( isTextNS )
     {
-        if ( localName.endsWith( "note" ))
+        if ( localName ==  "note" )
         {
             QString key = "STRING";
@@ -103,9 +103,9 @@ KoVariable* KWVariableCollection::loadOa
             return loadOasisFieldCreateVariable( textdoc, tag, context, key, type );
         }
-        else if ( localName.endsWith("table-count" ) ||
-                  localName.endsWith("object-count" ) ||
-                  localName.endsWith("image-count" ) ||
-                  localName.endsWith("paragraph-count" ) ||
-                  localName.endsWith("word-count" ) )
+        else if ( localName == "table-count"  ||
+                  localName == "object-count"  ||
+                  localName == "image-count"  ||
+                  localName == "paragraph-count"  ||
+                  localName == "word-count"  )
         {
             QString key = "NUMBER";


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

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