summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-04-06 13:05:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-04-06 16:46:35 +0200
commit2940491e2670610ca68288dd55af65238306d947 (patch)
tree485b1ced1fb0d7ab5bc5e2773c20bbb362858f34
parent5402e881ea057ac2956dbcf9942015627601da87 (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.cxx2
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() )
{