[Libreoffice-commits] core.git: sfx2/source

panoskorovesis (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 6 08:46:59 UTC 2021


 sfx2/source/appl/linkmgr2.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit bb2828cebf05467d2c301a476b2d485467de0c51
Author:     panoskorovesis <panoskorovesis at outlook.com>
AuthorDate: Tue Aug 3 12:26:35 2021 +0300
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Aug 6 10:46:25 2021 +0200

    Replace GDIMetaFile::Read with SvmReader::Read in linkmgr2.cxx
    
    Use the new read functionality in sfx2/source/appl/linkmgr2.cxx
    
    Change-Id: I25632dc11f50c0d16b2505acf2b4c271ef0a8775
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119964
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index 062450c3d0c3..4b77bcf90fb6 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -28,6 +28,7 @@
 #include <tools/urlobj.hxx>
 #include <sot/exchange.hxx>
 #include <tools/debug.hxx>
+#include <vcl/filter/SvmReader.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/weld.hxx>
 #include <vcl/gdimtf.hxx>
@@ -552,7 +553,8 @@ bool LinkManager::GetGraphicFromAny(const OUString& rMimeType,
         case SotClipboardFormatId::GDIMETAFILE:
             {
                 GDIMetaFile aMtf;
-                aMtf.Read( aMemStm );
+                SvmReader aReader( aMemStm );
+                aReader.Read( aMtf );
                 rGraphic = aMtf;
                 bRet = true;
             }


More information about the Libreoffice-commits mailing list