From e7de614279323337b23dfa62aaa336ed6b121f72 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 23 Jan 2021 21:18:58 +0000 Subject: cid#1472266 silence Using invalid iterator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibb2e139d60496925ef96f13b15bae4bfb0bd0c67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109845 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- oox/source/drawingml/fillproperties.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 837578ebc807..597e89da8eb8 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -584,6 +584,8 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, aWidestSegmentEnd = it; } + assert(aWidestSegmentEnd != aGradientStops.end()); + if( bSymmetric ) { aStartColor = aWidestSegmentEnd->second; -- cgit