summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index b774848cc3a4..eae5980bf56c 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -2295,6 +2295,11 @@ void VclMetafileProcessor2D::processUnifiedTransparencePrimitive2D(
// various content, create content-metafile
GDIMetaFile aContentMetafile;
+
+ // tdf#155479 always forward propagate SVG flag for sub-content,
+ // it may contain cannotBeHandledByVCL gradients or transparencyGradients
+ aContentMetafile.setSVG(mpOutputDevice->GetConnectMetaFile()->getSVG());
+
const tools::Rectangle aPrimitiveRectangle(
impDumpToMetaFile(rContent, aContentMetafile));
@@ -2391,8 +2396,7 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D(
// tdf#155479 Yepp, as already mentioned above we need to add
// some MCGR infos in case of SVG export, prepare that here
- if (nullptr != mpOutputDevice->GetConnectMetaFile()
- && mpOutputDevice->GetConnectMetaFile()->getSVG())
+ if (mpOutputDevice->GetConnectMetaFile()->getSVG())
{
// for SVG, do not use decompose & prep extra data
bSVGTransparencyColorStops = true;
@@ -2411,11 +2415,9 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D(
// vcl/metafile, so add it directly. various content, create content-metafile
GDIMetaFile aContentMetafile;
- // tdf#155479 do not forget to forward SVG flag for sub-content
- if (bSVGTransparencyColorStops)
- {
- aContentMetafile.setSVG(true);
- }
+ // tdf#155479 always forward propagate SVG flag for sub-content,
+ // it may contain cannotBeHandledByVCL gradients or transparencyGradients
+ aContentMetafile.setSVG(mpOutputDevice->GetConnectMetaFile()->getSVG());
const tools::Rectangle aPrimitiveRectangle(impDumpToMetaFile(rContent, aContentMetafile));