[Libreoffice-commits] core.git: filter/source
panoskorovesis (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 6 08:45:47 UTC 2021
filter/source/svg/svgexport.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 478a1ca5b169889cea0c09c2e18970223312ea2e
Author: panoskorovesis <panoskorovesis at outlook.com>
AuthorDate: Tue Aug 3 12:24:16 2021 +0300
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Aug 6 10:45:13 2021 +0200
Replace GDIMetaFile::Read with SvmReader::Read in svgexport.cxx
Use the new read functionality in filter/source/svg/svgexport.cxx
Change-Id: I798bd35df9f7f15c5f802b8a6b2f5af2136ce0d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119963
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index fdad0ba6dd37..e1d2fcba2376 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -53,6 +53,7 @@
#include <unotools/streamwrap.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
+#include <vcl/filter/SvmReader.hxx>
#include <xmloff/unointerfacetouniqueidentifiermapper.hxx>
#include <xmloff/namespacemap.hxx>
#include <xmloff/xmlnamespace.hxx>
@@ -2466,7 +2467,8 @@ void SVGFilter::implCreateObjectsFromBackground( const Reference< css::drawing::
xExporter->setSourceDocument( Reference< XComponent >( rxDrawPage, UNO_QUERY ) );
xExporter->filter( aDescriptor );
- aMtf.Read( *aFile.GetStream( StreamMode::READ ) );
+ SvmReader aReader( *aFile.GetStream( StreamMode::READ ) );
+ aReader.Read( aMtf );
bool bIsBitmap = false;
bool bIsTiled = false;
More information about the Libreoffice-commits
mailing list