[Libreoffice-commits] core.git: oox/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Jan 24 19:12:25 UTC 2021


 oox/source/drawingml/fillproperties.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e7de614279323337b23dfa62aaa336ed6b121f72
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jan 23 21:18:58 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jan 24 20:11:40 2021 +0100

    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 at redhat.com>

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;


More information about the Libreoffice-commits mailing list