summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-09-05 17:41:42 +0300
committerXisco Fauli <xiscofauli@libreoffice.org>2023-09-06 12:32:53 +0200
commitb345df89663a3a69ad55ed80ad9a6cc942786f92 (patch)
tree7b5dff904e00b1c87dc0cb0acd5308cef1877e12 /svx
parent434885a3a9630050a6c88c1294841f0da3ea6a7b (diff)
related tdf#150557: fix unified transparence initialization with alpha
In 98319164284c4a25d6a2313e6b8a35d244d94e91, shadow alpha was passed in to UnifiedTransparencePrimitive2D instead of shadow transparence mistakenly. Fix that and pass shadow transparence instead. Change-Id: Idabedade5d753961648683869cb077de0e4523eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156573 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de> (cherry picked from commit 300dc54b0424add2dbab5443dcbd46ba12f418fc) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156594 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/primitive2d/sdrdecompositiontools.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
index 33e42efc6d23..50f66391d95e 100644
--- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
+++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx
@@ -856,10 +856,8 @@ sal_uInt32 SlideBackgroundFillPrimitive2D::getPrimitive2DID() const
if (rShadow.getTransparence() != 0.0)
{
Primitive2DContainer aTempContent{ aRetval.back() };
-
- double fShadowAlpha = 1.0 - rShadow.getTransparence();
aRetval.back() = Primitive2DReference(new UnifiedTransparencePrimitive2D(
- std::move(aTempContent), fShadowAlpha));
+ std::move(aTempContent), rShadow.getTransparence()));
}
}