diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-07-10 14:15:12 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-07-10 14:15:12 +0200 |
commit | 0c2293c7b1e0793f61a396d5bb3e9161f965b8e3 (patch) | |
tree | 793ab478327b3481d4f6024ca6cde71c57dab179 | |
parent | 5a38774b5f9bfc2d58e8a7a06effb0bbe7d0debd (diff) |
Add support of SplineStart and SplineKnot to xml-based formatslibvisio-0.0.30
-rw-r--r-- | src/lib/VSDXMLParserBase.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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); } |