diff options
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 7a6fe4e65f43..6bc67e8b4c37 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 |