diff options
author | Attila Szűcs <attila.szucs@collabora.com> | 2023-01-04 00:40:23 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-01-06 09:29:22 +0000 |
commit | c27ba904366a966c2f4cc8fe2a04d47a41b3cc1d (patch) | |
tree | 80de90c8b4b0083f525c5210964af960f343176e /oox | |
parent | 18eeeda65f17fec1da1e79813db3439029d750e5 (diff) |
tdf#149588 pptx import: transparency at SolidFill
When copied color (RGB) property from text content to shape,
copy alpha component as well. (If text color have alpha component)
Change-Id: Ib86c48ab7b2d3c5f9491a2211b05e90b2c2ea10f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145031
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 0cc9aaae5dc6655490513e8e4a93967f6248e23c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145004
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/shape.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index a9b869e86af2..059785edf6e5 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -852,6 +852,12 @@ static void lcl_copyCharPropsToShape(const uno::Reference<drawing::XShape>& xSha aFillColor = static_cast<sal_Int32>( rCharProps.maFillProperties.maFillColor.getColor(rFilter.getGraphicHelper()) .GetRGBColor()); + if (rCharProps.maFillProperties.maFillColor.hasTransparency()) + { + const sal_Int16 aTransparence + = rCharProps.maFillProperties.maFillColor.getTransparency(); + xSet->setPropertyValue(UNO_NAME_FILL_TRANSPARENCE, uno::Any(aTransparence)); + } } xSet->setPropertyValue(UNO_NAME_FILLCOLOR, uno::Any(aFillColor)); |