From b582ec97fbcce88fa1a39bc7fe2a2ae084f30e35 Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Tue, 15 May 2018 11:13:05 +0200 Subject: tdf#117172 - Image context menu Save fails to do anything MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5c0980d85ef5ed050bfafbc368576c5ad72a80a7 Reviewed-on: https://gerrit.libreoffice.org/54359 Tested-by: Jenkins Reviewed-by: Miklos Vajna (cherry picked from commit 796bee47e90efee7c076f6acdc2a95004ed081d0) Reviewed-on: https://gerrit.libreoffice.org/54931 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/core/graphichelper.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx index 9e8f3dfceab8..6ec0b53fb70d 100644 --- a/svx/source/core/graphichelper.cxx +++ b/svx/source/core/graphichelper.cxx @@ -331,6 +331,13 @@ OUString GraphicHelper::ExportGraphic(const vcl::Window* pParent, const Graphic& return sPath; } } + else + { + XOutBitmap::WriteGraphic( rGraphic, sPath, aFilter, + XOutFlags::DontExpandFilename | + XOutFlags::DontAddExtension | + XOutFlags::UseNativeIfPossible ); + } } } return OUString(); -- cgit v1.2.3