summaryrefslogtreecommitdiff
path: root/sw/source/core/graphic
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-13 08:47:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-13 14:36:27 +0100
commit502f6372aeb6689f3d61cea7a77b2e8db160d767 (patch)
treeeabad6b878cd69d0f61af04259935d7efcd23830 /sw/source/core/graphic
parentf3d39d9a8502ae678a4eedfb73d1efc49104d7dc (diff)
transparency->alpha in GraphicAttr
Change-Id: I1fe9311871724ff8b7b8960f5dba6e890198565c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109211 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r--sw/source/core/graphic/ndgrf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 19db918cc8ff..83e8a33a3527 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -792,7 +792,7 @@ GraphicAttr& SwGrfNode::GetGraphicAttr( GraphicAttr& rGA,
rGA.SetInvert( rSet.GetInvertGrf().GetValue() );
const sal_uInt16 nTrans = rSet.GetTransparencyGrf().GetValue();
- rGA.SetTransparency( static_cast<sal_uInt8>(FRound(
+ rGA.SetAlpha( 255 - static_cast<sal_uInt8>(FRound(
std::min( nTrans, sal_uInt16(100) ) * 2.55 )) );
return rGA;