]> Git trees. - libqmvoc.git/commitdiff
only write conjugation tag if not empty
authorFrederik Gladhorn <gladhorn@kde.org>
Mon, 19 Apr 2010 18:42:18 +0000 (18:42 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Mon, 19 Apr 2010 18:42:18 +0000 (18:42 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=1116543

keduvocdocument/keduvoctranslation.cpp

index 6334e88d38faa65a86222a7d11ebbe74149b1f2c..b89ca57acbb2b2165fc34348e638a669c1559ef3 100644 (file)
@@ -432,7 +432,9 @@ void KEduVocTranslation::toKVTML2(QDomElement & parent)
     foreach ( const QString &tense, conjugationTenses() ) {
         QDomElement conjugationElement = parent.ownerDocument().createElement( KVTML_CONJUGATION );
         conjugation(tense).toKVTML2(conjugationElement, tense);
-        parent.appendChild( conjugationElement );
+        if (conjugationElement.hasChildNodes()) {
+            parent.appendChild( conjugationElement );
+        }
     }
 
     // <comment>