diff options
Diffstat (limited to 'svx/source/xml/xmlgrhlp.cxx')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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 <algorithm> #include <memory> +#include <utility> using namespace com::sun::star; using namespace com::sun::star::uno; @@ -1070,7 +1071,9 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference<css::graphic::X auto aIterator = maExportGraphics.find(aGraphic); if (aIterator != maExportGraphics.end()) { - return aIterator->second; + auto const & aURLAndMimePair = aIterator->second; + rOutSavedMimeType = aURLAndMimePair.second; + return aURLAndMimePair.first; } GraphicObject aGraphicObject(aGraphic); @@ -1275,7 +1278,7 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference<css::graphic::X aStoragePath += rPictureStreamName; // put into cache - maExportGraphics[aGraphic] = aStoragePath; + maExportGraphics[aGraphic] = std::make_pair(aStoragePath, rOutSavedMimeType); return aStoragePath; } |