drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 2914316bcffc890887ca577d2753149c07005815 Author: Armin Le Grand (allotropia) <armin.le.grand.ext...@allotropia.de> AuthorDate: Wed Sep 21 18:03:15 2022 +0200 Commit: Armin Le Grand <armin.le.gr...@me.com> CommitDate: Fri Sep 23 09:45:09 2022 +0200 tdf#150551 for PDF export, use the decomposition ...for better gradient visualization, see task for details. Change-Id: Idccd569b0e95763f6dbf6ad0a2204b62460c66d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140354 Tested-by: Jenkins Reviewed-by: Armin Le Grand <armin.le.gr...@me.com> diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index 8e221affe978..25142b778278 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1938,6 +1938,13 @@ void VclMetafileProcessor2D::processPolyPolygonGradientPrimitive2D( return; } + // tdf#150551 for PDF export, use the decomposition for better gradient visualization + if (nullptr != mpPDFExtOutDevData) + { + process(rGradientCandidate); + return; + } + basegfx::B2DPolyPolygon aLocalPolyPolygon(rGradientCandidate.getB2DPolyPolygon()); if (aLocalPolyPolygon.getB2DRange() != rGradientCandidate.getDefinitionRange())