aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-23 21:18:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-24 20:11:40 +0100
commite7de614279323337b23dfa62aaa336ed6b121f72 (patch)
tree243295ce0094967f54705b2e83983b985a5326ee
parent18c5fc0a115b483aca021d7f58dca6096659773b (diff)
cid#1472266 silence Using invalid iterator
Change-Id: Ibb2e139d60496925ef96f13b15bae4bfb0bd0c67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109845 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--oox/source/drawingml/fillproperties.cxx2
1 files changed, 2 insertions, 0 deletions
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;