summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-05 12:45:43 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-05 17:18:57 +0100
commita28a721ef9f2daced3e08f30578e603abd119773 (patch)
treeed7ddceb3a8b02d2a602e4b25b40c4f42ee8c688 /sd
parent23c300a06dbfb5399cf479d603e6f7fe1433d134 (diff)
cid#1546503 Using invalid iterator
and cid#1546284 Using invalid iterator Change-Id: I9ff3498b65ce392dbe859566b49e60a31e0779f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160370 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-epptooxml.cxx6
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 ae8ccc063cf2..291565871ff2 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -2335,9 +2335,13 @@ void PowerPointExport::WritePlaceholderReferenceShapes(PowerPointShapeExport& rD
|| mXPagePropSet->getPropertyValue("IsDateTimeFixed") == false)))
{
if ((xShape = GetReferencedPlaceholderXShape(DateAndTime, ePageType)))
+ {
+ const auto iter = maPlaceholderShapeToIndexMap.find(xShape);
+ assert(iter != maPlaceholderShapeToIndexMap.end());
rDML.WritePlaceholderReferenceShape(DateAndTime,
- maPlaceholderShapeToIndexMap.find(xShape)->second,
+ iter->second,
ePageType, mXPagePropSet);
+ }
}
}