From 46d75c2b3a02873097e3e64eb42c99422eda29d6 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Mon, 21 Dec 2015 09:29:27 +0100 Subject: Masters might be an empty element Change-Id: I5035d759582e5862b7e4d07fe8b854ba07108197 --- src/lib/VDXParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3