[Libreoffice-commits] .: writerperfect/source
Fridrich Strba
fridrich at kemper.freedesktop.org
Tue Jun 21 15:06:28 PDT 2011
writerperfect/source/filter/OdgGenerator.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 188eca34d2c61ebc961c4c3b199fb333f75d901a
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Wed Jun 22 00:06:20 2011 +0200
Be gracious with broken paths
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 7a6fe4e..6bc67e8 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -740,6 +740,9 @@ void OdgGeneratorPrivate::_drawPath(const WPXPropertyListVector& path)
{
if(path.count() == 0)
return;
+ // This must be a mistake and we do not want to crash lower
+ if(path[0]["libwpg:path-action"]->getStr() == "Z")
+ return;
// try to find the bounding box
// this is simple convex hull technique, the bounding box might not be
More information about the Libreoffice-commits
mailing list