diff options
Diffstat (limited to 'svx/source/gallery2/gallerybinaryengine.cxx')
-rw-r--r-- | svx/source/gallery2/gallerybinaryengine.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/gallery2/gallerybinaryengine.cxx b/svx/source/gallery2/gallerybinaryengine.cxx index 661b3dd03bed..c2216b2766f5 100644 --- a/svx/source/gallery2/gallerybinaryengine.cxx +++ b/svx/source/gallery2/gallerybinaryengine.cxx @@ -28,6 +28,7 @@ #include "codec.hxx" #include "gallerydrawmodel.hxx" #include <vcl/cvtgrf.hxx> +#include <vcl/filter/SvmWriter.hxx> #include <sal/log.hxx> @@ -504,7 +505,8 @@ SgaObjectBmp GalleryBinaryEngine::insertGraphic(const Graphic& rGraphic, const G { GDIMetaFile aMtf(rGraphic.GetGDIMetaFile()); - aMtf.Write(*pOStm); + SvmWriter aWriter(*pOStm); + aWriter.Write(aMtf); bRet = (pOStm->GetError() == ERRCODE_NONE); } else |