]> Git trees. - libqmvoc.git/commitdiff
Make sure identifiers are appended.
authorPeter Hedlund <peter@peterandlinda.com>
Fri, 27 Jul 2007 19:47:09 +0000 (19:47 +0000)
committerPeter Hedlund <peter@peterandlinda.com>
Fri, 27 Jul 2007 19:47:09 +0000 (19:47 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=693356

kdeeducore/keduvockvtmlreader.cpp

index 065ccf2714050f8965b6e04e94bb00a01ef10968..e07dd82550b5eea7aeb73895796495ee2739da0d 100644 (file)
@@ -1159,7 +1159,7 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent)
       }
 //kDebug() << " TranslationList.count(): " << translationList.count() << "  Entry count: " << m_doc->entryCount() << endl;
         if (m_doc->entryCount() == 0) { // this is because in kvtml the languages are saved in the FIRST ENTRY ONLY.
-//kDebug() << " Read Expression with identifiers: " << i << endl;
+//kDebug() << " Read Expression with identifiers: " << lang << endl;
             // new translation
             if (lang.isEmpty()) {
                 if (i == 0) {
@@ -1169,8 +1169,10 @@ bool KEduVocKvtmlReader::readExpression(QDomElement &domElementParent)
                     lang.setNum(m_doc->identifierCount());
                     lang.prepend("translation ");
                 }
-                m_doc->appendIdentifier(lang);
+
             }
+            if (m_doc->identifierCount() <= i)
+              m_doc->appendIdentifier(lang);
         }
         else
         {