From bec51fdb04bf25b9d670982dccab728c55c83fdf Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 6 Mar 2018 18:47:46 +0900 Subject: cache location and mime type when saving a graphic to a storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If27a5f617a103da235d6690ea0447d6c64538dea Reviewed-on: https://gerrit.libreoffice.org/50810 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- svx/source/xml/xmlgrhlp.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'svx/source/xml') diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index f8f690747959..62aa1bb6dd1b 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -49,6 +49,7 @@ #include #include +#include using namespace com::sun::star; using namespace com::sun::star::uno; @@ -1070,7 +1071,9 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Referencesecond; + auto const & aURLAndMimePair = aIterator->second; + rOutSavedMimeType = aURLAndMimePair.second; + return aURLAndMimePair.first; } GraphicObject aGraphicObject(aGraphic); @@ -1275,7 +1278,7 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference