diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2018-05-15 11:13:05 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-06-01 20:46:24 +0200 |
commit | bdc36e33cb2ab3b9c2a75a78e25c8c0e878b69cf (patch) | |
tree | c67f2465545ad62b972a345a2e843930f7de9051 /svx | |
parent | 6fd6fd43f94e9bc824384876aaa9b91ef6abba80 (diff) |
tdf#117172 - Image context menu Save fails to do anything
Change-Id: I5c0980d85ef5ed050bfafbc368576c5ad72a80a7
Reviewed-on: https://gerrit.libreoffice.org/54359
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 796bee47e90efee7c076f6acdc2a95004ed081d0)
Reviewed-on: https://gerrit.libreoffice.org/54931
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit b582ec97fbcce88fa1a39bc7fe2a2ae084f30e35)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/graphichelper.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |