diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-06 13:05:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-06 16:46:35 +0200 |
commit | 2940491e2670610ca68288dd55af65238306d947 (patch) | |
tree | 485b1ced1fb0d7ab5bc5e2773c20bbb362858f34 | |
parent | 5402e881ea057ac2956dbcf9942015627601da87 (diff) |
cid#1524677 attempt to silence Explicit null dereferenced
ctor iterator to point to start of container
Change-Id: I37f55b572d76958cf0b8ea5139ccd291ef546c65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150104
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | oox/source/drawingml/fillproperties.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index fd3ba99b2c3f..34a0db6dc940 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -725,7 +725,7 @@ void FillProperties::pushToPropMap(ShapePropertyMap& rPropMap, const GraphicHelp // First look for the largest segment in the gradient. GradientFillProperties::GradientStopMap::iterator aIt(aGradientStops.begin()); double nWidestWidth = -1; - GradientFillProperties::GradientStopMap::iterator aWidestSegmentStart; + GradientFillProperties::GradientStopMap::iterator aWidestSegmentStart(aIt); ++aIt; while( aIt != aGradientStops.end() ) { |