From 89879b0051529cb8d16da6c8b4b1203679f8f734 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 12 Sep 2017 13:26:35 +0200 Subject: tdf#112088 gradient stop map -> multimap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When two gradientstops were set to position 50% only one was stored and the exported file was detected as broken by MSO. Change-Id: I5fd1acde6051f734a5f3e4cff9bde01b675e1984 Reviewed-on: https://gerrit.libreoffice.org/42210 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- oox/source/drawingml/shape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox/source/drawingml/shape.cxx') diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index e75f6e8ca3d1..ddf829bcea5a 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -999,7 +999,7 @@ Reference< XShape > const & Shape::createAndInsert( if( aShapeProps.hasProperty( PROP_FillGradient ) ) { std::vector aGradientStops; - ::std::map< double, Color >::iterator aIt = aFillProperties.maGradientProps.maGradientStops.begin(); + auto aIt = aFillProperties.maGradientProps.maGradientStops.begin(); for( size_t i = 0; i < aFillProperties.maGradientProps.maGradientStops.size(); ++i ) { // for each stop in the gradient definition: -- cgit