summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-09-07 13:53:25 +0300
committerSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-09-08 08:58:02 +0200
commitb0e8ce9967acf3a759e5b85c4a0d16d7dad275fe (patch)
tree02ed16975180637a3a8bd53e9a3e07deae016d41 /oox
parentedd121dd668e141cd61f0992340fa07eb6df8e76 (diff)
tdf#156649: oox: correct import alphaModFix for custom shapes
alphaModFix should be imported into PROP_FillTransparency for custom shapes. Change-Id: I19621e424a64b097d5e6881877d60de253be636d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156660 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/fillproperties.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx
index 9f18e7d65f7d..ff78f3183831 100644
--- a/oox/source/drawingml/fillproperties.cxx
+++ b/oox/source/drawingml/fillproperties.cxx
@@ -866,7 +866,9 @@ void GraphicProperties::pushToPropMap( PropertyMap& rPropMap, const GraphicHelpe
if ( maBlipProps.moAlphaModFix.has_value() )
{
- rPropMap.setProperty(PROP_Transparency, static_cast<sal_Int16>(100 - (maBlipProps.moAlphaModFix.value() / PER_PERCENT)));
+ rPropMap.setProperty(
+ mbIsCustomShape ? PROP_FillTransparence : PROP_Transparency,
+ static_cast<sal_Int16>(100 - (maBlipProps.moAlphaModFix.value() / PER_PERCENT)));
}
}
rPropMap.setProperty(PROP_GraphicColorMode, eColorMode);