summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga991@gmail.com>2019-11-11 15:03:05 +0100
committerLászló Németh <nemeth@numbertext.org>2019-11-13 08:28:11 +0100
commitd7149889a9e1cae7f255691c2a35090ac3245bfa (patch)
tree84e0d81e5b956b34a0cc507062510f27bd32e3a9 /oox
parenteeae2032476e8c8645ab438fbb379f3151c8e472 (diff)
tdf#128619 Chart OOXML export: fix gradient position
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 <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx2
1 files changed, 1 insertions, 1 deletions
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);