diff options
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(); |