Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/fb2save.cpp')
-rw-r--r--source/fb2save.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fb2save.cpp b/source/fb2save.cpp
index 1c918e2..2805991 100644
--- a/source/fb2save.cpp
+++ b/source/fb2save.cpp
@@ -311,6 +311,7 @@ FbSaveHandler::TextHandler::TextHandler(TextHandler *parent, const QString &name
, m_level(parent->nextLevel())
, m_hasChild(false)
{
+ if (tag.isEmpty()) return;
m_writer.writeStartElement(m_tag, m_level);
writeAtts(atts);
}
@@ -318,7 +319,6 @@ FbSaveHandler::TextHandler::TextHandler(TextHandler *parent, const QString &name
void FbSaveHandler::TextHandler::writeAtts(const QXmlAttributes &atts)
{
if (m_tag.isEmpty()) return;
- m_writer.writeStartElement(m_tag, m_level);
int count = atts.count();
for (int i = 0; i < count; i++) {
m_writer.writeAttribute(atts.qName(i), atts.value(i));