diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-03 21:23:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-04 10:46:28 +0100 |
commit | cdb180e767ebf2011414f4a5ba7213752474ee36 (patch) | |
tree | 5adb5060ee910d20256a66b6c336d72fdb5d0b55 /sd | |
parent | beb0b57a638a2577d89ab5bdee6351008c5127ca (diff) |
cid#1546332 Using invalid iterator
and :
cid#1546327 Using invalid iterator
cid#1546289 Using invalid iterator
cid#1546284 Using invalid iterator
Change-Id: Ia0c8c69433a51fd356930f40f17f50774f244239
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160279
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index 6cb5e277ee87..ae8ccc063cf2 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -2317,9 +2317,13 @@ void PowerPointExport::WritePlaceholderReferenceShapes(PowerPointShapeExport& rD && aAny == true)) { if ((xShape = GetReferencedPlaceholderXShape(SlideNumber, ePageType))) + { + const auto iter = maPlaceholderShapeToIndexMap.find(xShape); + assert(iter != maPlaceholderShapeToIndexMap.end()); rDML.WritePlaceholderReferenceShape(SlideNumber, - maPlaceholderShapeToIndexMap.find(xShape)->second, + iter->second, ePageType, mXPagePropSet); + } } if (ePageType == LAYOUT |