summaryrefslogtreecommitdiff
path: root/editeng
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 /editeng
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 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index e90f2f9586a3..589bde044152 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -3311,7 +3311,7 @@ void SvxBrushItem::ApplyGraphicTransparency_Impl()
if (xGraphicObject)
{
GraphicAttr aAttr(xGraphicObject->GetAttr());
- aAttr.SetTransparency(lcl_PercentToTransparency(
+ aAttr.SetAlpha(255 - lcl_PercentToTransparency(
nGraphicTransparency));
xGraphicObject->SetAttr(aAttr);
}