oox/source/drawingml/fillproperties.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 83d51a0d14a2da6fd1af6c4ff4bb5ff7bfb94cf1 Author: Caolán McNamara <[email protected]> Date: Thu Nov 30 20:29:36 2017 +0000 ofz: handle empty Gradient Stops Change-Id: I7e719b21bd21085ffdd0226a4a25d406a4e69351 Reviewed-on: https://gerrit.libreoffice.org/45617 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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);
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
