From: Fridrich S. <str...@us...> - 2008-07-22 06:39:48
|
Update of /cvsroot/libwpg/libwpg/src/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3131/src/lib Modified Files: Tag: STABLE-0-1-0 WPG2Parser.cpp WPG2Parser.h Log Message: we never saw a polyspline, we don't manage to generate it. So, we simply draw a polyline instead and wait for bug reports to give us some more information Index: WPG2Parser.cpp =================================================================== RCS file: /cvsroot/libwpg/libwpg/src/lib/WPG2Parser.cpp,v retrieving revision 1.58.2.10 retrieving revision 1.58.2.11 diff -u -d -r1.58.2.10 -r1.58.2.11 --- WPG2Parser.cpp 18 Jul 2008 13:12:17 -0000 1.58.2.10 +++ WPG2Parser.cpp 22 Jul 2008 06:39:43 -0000 1.58.2.11 @@ -266,7 +266,7 @@ { 0x11, "Chart Data", 0 }, // ignored { 0x12, "Object Image", &WPG2Parser::handleObjectImage }, { 0x15, "Polyline", &WPG2Parser::handlePolyline }, - { 0x16, "Polyspline", 0 }, + { 0x16, "Polyspline", &WPG2Parser::handlePolyspline }, { 0x17, "Polycurve", &WPG2Parser::handlePolycurve }, { 0x18, "Rectangle", &WPG2Parser::handleRectangle }, { 0x19, "Arc", &WPG2Parser::handleArc }, @@ -1196,6 +1196,15 @@ WPG_DEBUG_MSG((" Point #%d : %g,%g\n", j+1, points[j].x, points[j].y)); } +void WPG2Parser::handlePolyspline() +{ + if (!m_graphicsStarted) + return; + // We have never seen a polyspline in a WPG file and we are not even able to generate + // one, so, we draw a polyline instead and wait for bug reports :) + handlePolyline(); +} + void WPG2Parser::handlePolycurve() { if (!m_graphicsStarted) Index: WPG2Parser.h =================================================================== RCS file: /cvsroot/libwpg/libwpg/src/lib/WPG2Parser.h,v retrieving revision 1.21.2.2 retrieving revision 1.21.2.3 diff -u -d -r1.21.2.2 -r1.21.2.3 --- WPG2Parser.h 9 Jul 2008 13:46:32 -0000 1.21.2.2 +++ WPG2Parser.h 22 Jul 2008 06:39:43 -0000 1.21.2.3 @@ -175,6 +175,7 @@ void handleBrushPattern(); void handlePolyline(); + void handlePolyspline(); void handlePolycurve(); void handleRectangle(); void handleArc(); |