From: Fridrich S. <str...@us...> - 2008-07-22 06:39:32
|
Update of /cvsroot/libwpg/libwpg/src/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3114/src/lib Modified Files: 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.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- WPG2Parser.cpp 18 Jul 2008 13:11:57 -0000 1.71 +++ WPG2Parser.cpp 22 Jul 2008 06:39:27 -0000 1.72 @@ -280,7 +280,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 }, @@ -1184,6 +1184,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.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- WPG2Parser.h 16 Jul 2008 09:57:28 -0000 1.24 +++ WPG2Parser.h 22 Jul 2008 06:39:27 -0000 1.25 @@ -175,6 +175,7 @@ void handleBrushPattern(); void handlePolyline(); + void handlePolyspline(); void handlePolycurve(); void handleRectangle(); void handleArc(); |