From d7149889a9e1cae7f255691c2a35090ac3245bfa Mon Sep 17 00:00:00 2001 From: Balazs Varga Date: Mon, 11 Nov 2019 15:03:05 +0100 Subject: tdf#128619 Chart OOXML export: fix gradient position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Export the gradient border value as gradient stop position of the first color at LINEAR GradientStyle. Change-Id: I1a2b986a004fecbf68050c6bf95be549684fea70 Reviewed-on: https://gerrit.libreoffice.org/82446 Tested-by: Jenkins Reviewed-by: László Németh Tested-by: László Németh --- oox/source/export/drawingml.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index a5c152dcf6d1..2cc160d05b57 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -605,7 +605,7 @@ void DrawingML::WriteGradientFill(awt::Gradient rGradient, awt::Gradient rTransp nStartAlpha = GetAlphaFromTransparenceGradient(rTransparenceGradient, true); nEndAlpha = GetAlphaFromTransparenceGradient(rTransparenceGradient, false); } - WriteGradientStop(0, ColorWithIntensity(rGradient.StartColor, rGradient.StartIntensity), + WriteGradientStop(rGradient.Border, ColorWithIntensity(rGradient.StartColor, rGradient.StartIntensity), nStartAlpha); WriteGradientStop(100, ColorWithIntensity(rGradient.EndColor, rGradient.EndIntensity), nEndAlpha); -- cgit