[Libreoffice-commits] libvisio.git: src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Wed Jul 10 05:15:55 PDT 2013
src/lib/VSDXMLParserBase.cpp | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit 0c2293c7b1e0793f61a396d5bb3e9161f965b8e3
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Wed Jul 10 14:15:12 2013 +0200
Add support of SplineStart and SplineKnot to xml-based formats
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);
}
More information about the Libreoffice-commits
mailing list