From 0c2293c7b1e0793f61a396d5bb3e9161f965b8e3 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Wed, 10 Jul 2013 14:15:12 +0200 Subject: Add support of SplineStart and SplineKnot to xml-based formats --- src/lib/VSDXMLParserBase.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/VSDXMLParserBase.cpp b/src/lib/VSDXMLParserBase.cpp index da7a22e..0812429 100644 --- a/src/lib/VSDXMLParserBase.cpp +++ b/src/lib/VSDXMLParserBase.cpp @@ -168,6 +168,14 @@ void libvisio::VSDXMLParserBase::readGeometry(xmlTextReaderPtr reader) if (XML_READER_TYPE_ELEMENT == tokenType) readRelQuadBezTo(reader); break; + case XML_SPLINESTART: + if (XML_READER_TYPE_ELEMENT == tokenType) + readSplineStart(reader); + break; + case XML_SPLINEKNOT: + if (XML_READER_TYPE_ELEMENT == tokenType) + readSplineKnot(reader); + break; default: break; } @@ -1589,7 +1597,7 @@ void libvisio::VSDXMLParserBase::readSplineStart(xmlTextReaderPtr reader) break; } } - while (((XML_ELLIPTICALARCTO != tokenId && XML_ROW != tokenId) || XML_READER_TYPE_END_ELEMENT != tokenType) && 1 == ret); + while (((XML_SPLINESTART != tokenId && XML_ROW != tokenId) || XML_READER_TYPE_END_ELEMENT != tokenType) && 1 == ret); if (ret == 1) m_currentGeometryList->addSplineStart(ix, level, x, y, a, b, c, d); } -- cgit v1.2.3