From 831a0c88bdde256e8c58f5f524400163553fe608 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Wed, 22 Jun 2011 00:06:20 +0200 Subject: Be gracious with broken paths --- writerperfect/source/filter/OdgGenerator.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'writerperfect') 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 -- cgit