From: Frederik Gladhorn Date: Mon, 19 Apr 2010 18:42:18 +0000 (+0000) Subject: only write conjugation tag if not empty X-Git-Tag: v4.4.80~3 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=f7bb709be5b769f3daead576525287b1299c7b9d;p=libqmvoc.git only write conjugation tag if not empty svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=1116543 --- diff --git a/keduvocdocument/keduvoctranslation.cpp b/keduvocdocument/keduvoctranslation.cpp index 6334e88..b89ca57 100644 --- a/keduvocdocument/keduvoctranslation.cpp +++ b/keduvocdocument/keduvoctranslation.cpp @@ -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 ); + } } //