diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-08 11:18:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-08 11:18:33 +0100 |
commit | 64a252ffa9d0c30bec195a68c6837a0acdeca29a (patch) | |
tree | a3782ab317534d80cc0240aa3222ce6633404df9 /writerperfect | |
parent | cc1273543f4084a779a2b0400c22466672557a95 (diff) |
don't crash on loading abi13730-1.wpd
Change-Id: I3796f16c4df8cc055fb1a75b1583c5b959f02799
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/writer/WordPerfectImportFilter.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx index cc383174791a..7bbb36f352a7 100644 --- a/writerperfect/source/writer/WordPerfectImportFilter.cxx +++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx @@ -84,6 +84,9 @@ static bool handleEmbeddedWPGImage(const librevenge::RVNGBinaryData &input, libr if (!libwpg::WPGraphics::parse(input.getDataStream(), &aSVGGenerator, fileFormat)) return false; + if (svgOutput.empty()) + return false; + assert(1 == svgOutput.size()); output.clear(); |