summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2015-12-21 09:29:27 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2015-12-21 09:31:26 +0100
commit46d75c2b3a02873097e3e64eb42c99422eda29d6 (patch)
treef007e5fcbe689c23608d335b42ef8dbdc7bbab5c
parent21bf4036d74cde752fc3cea6ce3cd7fca2d27829 (diff)
Masters might be an empty element
Change-Id: I5035d759582e5862b7e4d07fe8b854ba07108197
-rw-r--r--src/lib/VDXParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/VDXParser.cpp b/src/lib/VDXParser.cpp
index cc59b8b..973e464 100644
--- a/src/lib/VDXParser.cpp
+++ b/src/lib/VDXParser.cpp
@@ -123,7 +123,7 @@ void libvisio::VDXParser::processXmlNode(xmlTextReaderPtr reader)
handleMasterEnd(reader);
break;
case XML_MASTERS:
- if (XML_READER_TYPE_ELEMENT == tokenType)
+ if (XML_READER_TYPE_ELEMENT == tokenType && !xmlTextReaderIsEmptyElement(reader))
handleMastersStart(reader);
else if (XML_READER_TYPE_END_ELEMENT == tokenType)
handleMastersEnd(reader);