From: Peter Hedlund Date: Fri, 27 Jul 2007 19:47:09 +0000 (+0000) Subject: Make sure identifiers are appended. X-Git-Tag: v3.93.0~116 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=4e124ddddaf6cd79363fccb8c78e88d8390d9131;p=libqmvoc.git Make sure identifiers are appended. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=693356 --- diff --git a/kdeeducore/keduvockvtmlreader.cpp b/kdeeducore/keduvockvtmlreader.cpp index 065ccf2..e07dd82 100644 --- a/kdeeducore/keduvockvtmlreader.cpp +++ b/kdeeducore/keduvockvtmlreader.cpp @@ -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 {