From: Frederik Gladhorn Date: Sun, 23 Mar 2008 14:58:58 +0000 (+0000) Subject: Fix reading of some kde3 kvtml1 docs. X-Git-Tag: v4.0.71~12 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=00e80782417b69a2e0779f06c5f0750c6b6325fa;p=libqmvoc.git Fix reading of some kde3 kvtml1 docs. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=789195 --- diff --git a/keduvocdocument/keduvockvtmlreader.cpp b/keduvocdocument/keduvockvtmlreader.cpp index ae86547..82f5b58 100644 --- a/keduvocdocument/keduvockvtmlreader.cpp +++ b/keduvocdocument/keduvockvtmlreader.cpp @@ -964,13 +964,6 @@ bool KEduVocKvtmlReader::readExpression( QDomElement &domElementParent ) } - if ( m_doc->lesson()->entries(KEduVocLesson::Recursive).count() == 0 ) { // this is because in kvtml the languages are saved in the FIRST ENTRY ONLY. - - // new translation - if (!addLanguage(i, lang)) { - return false; - } - } //--------- // Children @@ -988,6 +981,13 @@ bool KEduVocKvtmlReader::readExpression( QDomElement &domElementParent ) entry->setTranslation( i, textstr ); } + if ( m_doc->lesson()->entries(KEduVocLesson::Recursive).count() == 1 ) { // this is because in kvtml the languages are saved in the FIRST ENTRY ONLY. + // new translation + if (!addLanguage(i, lang)) { + return false; + } + } + // better make sure, translation(i) already exists... currentChild = currentElement.firstChildElement( KV_CONJUG_GRP ); if ( !currentChild.isNull() ) {