summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-30 20:29:36 +0000
committerMichael Stahl <mstahl@redhat.com>2017-12-01 10:30:35 +0100
commitd48ab02bd3bdb8f33ad9b5ca6b2a641614da6ae4 (patch)
treedcdd00c01aa3b700942eb1edb8b1562dbdfd3df8 /oox
parentabcfe9bef8f2d545106ce495cd0f7ca419de8e8e (diff)
ofz: handle empty Gradient Stops
Change-Id: I7e719b21bd21085ffdd0226a4a25d406a4e69351 Reviewed-on: https://gerrit.libreoffice.org/45619 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'oox')
-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 314ff5822695..7786f26cda79 100644
--- a/oox/source/drawingml/fillproperties.cxx
+++ b/oox/source/drawingml/fillproperties.cxx
@@ -378,7 +378,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
::std::swap( aGradient.StartColor, aGradient.EndColor );
::std::swap( nStartTrans, nEndTrans );
}
- else
+ else if (!maGradientProps.maGradientStops.empty())
{
// A copy of the gradient stops for local modification
GradientFillProperties::GradientStopMap aGradientStops(maGradientProps.maGradientStops);