From f7bb709be5b769f3daead576525287b1299c7b9d Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 19 Apr 2010 18:42:18 +0000 Subject: [PATCH] only write conjugation tag if not empty svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=1116543 --- keduvocdocument/keduvoctranslation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); + } } // -- 2.47.3