diff options
Diffstat (limited to 'svx/source/gallery2/galobj.cxx')
-rw-r--r-- | svx/source/gallery2/galobj.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx index 80c81063d951..5044d0ff7934 100644 --- a/svx/source/gallery2/galobj.cxx +++ b/svx/source/gallery2/galobj.cxx @@ -33,6 +33,7 @@ #include <galobj.hxx> #include <vcl/dibtools.hxx> #include <vcl/filter/SvmReader.hxx> +#include <vcl/filter/SvmWriter.hxx> #include "gallerydrawmodel.hxx" #include <bitmaps.hlst> @@ -193,7 +194,13 @@ void SgaObject::WriteData( SvStream& rOut, const OUString& rDestDir ) const rOut.SetCompressMode( nOldCompressMode ); } else - WriteGDIMetaFile( rOut, aThumbMtf ); + { + if(!rOut.GetError()) + { + SvmWriter aWriter(rOut); + aWriter.Write(aThumbMtf); + } + } OUString aURLWithoutDestDir = aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ); aURLWithoutDestDir = aURLWithoutDestDir.replaceFirst(rDestDir, ""); |