diff options
Diffstat (limited to 'writerperfect/source')
-rw-r--r-- | writerperfect/source/writer/EPUBExportFilter.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/writerperfect/source/writer/EPUBExportFilter.cxx b/writerperfect/source/writer/EPUBExportFilter.cxx index d944b080ddd3..129d2941c795 100644 --- a/writerperfect/source/writer/EPUBExportFilter.cxx +++ b/writerperfect/source/writer/EPUBExportFilter.cxx @@ -24,6 +24,7 @@ #include <comphelper/propertysetinfo.hxx> #include <cppuhelper/supportsservice.hxx> #include <svtools/DocumentToGraphicRenderer.hxx> +#include <vcl/filter/SvmWriter.hxx> #include <vcl/gdimtf.hxx> #include <tools/stream.hxx> @@ -158,7 +159,8 @@ void EPUBExportFilter::CreateMetafiles(std::vector<exp::FixedLayoutPage>& rPageM rGDIMetaFile.SetPrefSize(aLogic); SvMemoryStream aMemoryStream; - rGDIMetaFile.Write(aMemoryStream); + SvmWriter aWriter(aMemoryStream); + aWriter.Write(rGDIMetaFile); uno::Sequence<sal_Int8> aSequence(static_cast<const sal_Int8*>(aMemoryStream.GetData()), aMemoryStream.Tell()); |