From b50da6f3a9109fc1d4468c15aa7d5c68773ec199 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 4 Dec 2023 11:31:36 +0100 Subject: cid#1546275 Using invalid iterator and : cid#1546219 Using invalid iterator cid#1546088 Using invalid iterator cid#1546070 Using invalid iterator cid#1546061 Using invalid iterator cid#1546055 Using invalid iterator cid#1546049 Using invalid iterator Change-Id: I6f3a786852b5c262d60c3195e446a37967ed9b59 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160311 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sw/source/filter/ww8/docxattributeoutput.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 8949ffe58a77..d84549d43066 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -315,7 +315,9 @@ void lclAddThemeValuesToCustomAttributes( if (rComplexColor.isValidThemeType()) { - OString sSchemeType = constThemeColorTypeTokenMap.find(rComplexColor.getThemeColorType())->second; + const auto iter = constThemeColorTypeTokenMap.find(rComplexColor.getThemeColorType()); + assert(iter != constThemeColorTypeTokenMap.end()); + OString sSchemeType = iter->second; if (rComplexColor.getThemeColorUsage() == model::ThemeColorUsage::Text) { if (rComplexColor.getThemeColorType() == model::ThemeColorType::Dark1) -- cgit