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:31:05 +0100
commit937e292367d447a709d15646a2a354aade5ad6aa (patch)
tree37238a09f1bba401f9e955e3a2c2a6bdcb73dfb8 /oox
parent25a913746745cdec71483053f0a2177b4889a37f (diff)
ofz: handle empty Gradient Stops
Change-Id: I7e719b21bd21085ffdd0226a4a25d406a4e69351 Reviewed-on: https://gerrit.libreoffice.org/45618 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 5d7575724275..50e042d8623b 100644
--- a/oox/source/drawingml/fillproperties.cxx
+++ b/oox/source/drawingml/fillproperties.cxx
@@ -372,7 +372,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);