summaryrefslogtreecommitdiff
path: root/drawinglayer/source/tools/emfpimageattributes.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-11 08:54:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-12 17:38:53 +0100
commitd765ec2295d12ccde1fb25aa92c5d821de748add (patch)
treec2f806389478df23b78319c6043971f92995851c /drawinglayer/source/tools/emfpimageattributes.cxx
parenta1d6701105456248f6ff39766a6699f26a8f3d60 (diff)
transparency->alpha in tools::Color
this just changes the Get/Set methods, the constructor and internal representation of Color is not changed. Change-Id: Idb6e07cc08bbaa5bd55b6bd4b585e648aef507b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109074 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/tools/emfpimageattributes.cxx')
-rw-r--r--drawinglayer/source/tools/emfpimageattributes.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/tools/emfpimageattributes.cxx b/drawinglayer/source/tools/emfpimageattributes.cxx
index 8508172fe6a5..1cb72b080ab8 100644
--- a/drawinglayer/source/tools/emfpimageattributes.cxx
+++ b/drawinglayer/source/tools/emfpimageattributes.cxx
@@ -56,7 +56,7 @@ void EMFPImageAttributes::Read(SvStream& s)
clampColor.SetRed(clampColorRed);
clampColor.SetGreen(clampColorGreen);
clampColor.SetBlue(clampColorBlue);
- clampColor.SetTransparency(clampColorAlpha);
+ clampColor.SetAlpha(255 - clampColorAlpha);
SAL_INFO("drawinglayer", "EMF+\timage attributes");
SAL_WARN_IF((reserved1 != 0) || (reserved2 != 0), "drawinglayer",