diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-08-05 15:41:48 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-08-13 06:21:19 +0200 |
commit | be710c72a6302829bf7f632c8ad6dc72be51fd95 (patch) | |
tree | 8a902e4a063169e7ba75f8511c48a363507ca7ae /filter | |
parent | 18771471f75685a6d3838a22d16dcff5c398e652 (diff) |
Replace ReadGDIMetaFile with SvmReader::Read
Use the new Read functionality
Change-Id: Ied997377fda8793422b1c8877ece705e4a9b6dbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120376
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index eefbbc61859a..17401fdd2370 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -29,6 +29,7 @@ #include <vcl/metric.hxx> #include <vcl/outdev.hxx> #include <vcl/settings.hxx> +#include <vcl/filter/SvmReader.hxx> #include <tools/fract.hxx> #include <tools/helpers.hxx> #include <tools/stream.hxx> @@ -4002,7 +4003,8 @@ void SAL_CALL SVGWriter::write( const Reference<XDocumentHandler>& rxDocHandler, SvMemoryStream aMemStm( const_cast<sal_Int8 *>(rMtfSeq.getConstArray()), rMtfSeq.getLength(), StreamMode::READ ); GDIMetaFile aMtf; - ReadGDIMetaFile( aMemStm, aMtf ); + SvmReader aReader( aMemStm ); + aReader.Read( aMtf ); rtl::Reference<SVGExport> pWriter(new SVGExport( mxContext, rxDocHandler, maFilterData )); pWriter->writeMtf( aMtf ); |