summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorArmin Le Grand (Collabora) <Armin.Le.Grand@me.com>2024-07-19 14:35:39 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2024-07-20 14:19:35 +0200
commit7297b0788f8f20ba6ab0973f944a4d522d666108 (patch)
tree8b4a52de916153c6b0f8ce519dac9024173a1f76 /svx/source
parent926ed71244c20d5a96d0f20b7c4edfb9e645a667 (diff)
CairoSDPR: Support direct RGBA paint of PolyPolygons
Change-Id: Id1480297126bcc422945df7cd47993cc7fe5c22a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170768 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/sdr/primitive2d/sdrdecompositiontools.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
index d4ce74d1c025..7f315cb2486a 100644
--- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
+++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
@@ -28,6 +28,7 @@
#include <drawinglayer/primitive2d/softedgeprimitive2d.hxx>
#include <drawinglayer/primitive2d/unifiedtransparenceprimitive2d.hxx>
#include <drawinglayer/primitive2d/transparenceprimitive2d.hxx>
+#include <drawinglayer/primitive2d/PolyPolygonRGBAPrimitive2D.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <drawinglayer/primitive2d/fillgradientprimitive2d.hxx>
#include <drawinglayer/attribute/strokeattribute.hxx>
@@ -447,6 +448,14 @@ sal_uInt32 SlideBackgroundFillPrimitive2D::getPrimitive2DID() const
}
else
{
+ if(0.0 != rFill.getTransparence())
+ {
+ return new PolyPolygonRGBAPrimitive2D(
+ rPolyPolygon,
+ rFill.getColor(),
+ rFill.getTransparence());
+ }
+
pNewFillPrimitive = new PolyPolygonColorPrimitive2D(
rPolyPolygon,
rFill.getColor());