summaryrefslogtreecommitdiffstats
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-06-22 00:06:20 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-06-22 00:06:20 +0200
commit831a0c88bdde256e8c58f5f524400163553fe608 (patch)
tree20e24699a7e906dbd93eb8fb36fed1e6158664a0 /writerperfect
parentuse size_t here (diff)
downloadcore-831a0c88bdde256e8c58f5f524400163553fe608.tar.gz
core-831a0c88bdde256e8c58f5f524400163553fe608.zip
Be gracious with broken paths
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx3
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