summaryrefslogtreecommitdiff
path: root/svx/source/sdr/primitive2d/sdrattributecreator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/primitive2d/sdrattributecreator.cxx')
-rw-r--r--svx/source/sdr/primitive2d/sdrattributecreator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
index 5ee93efef85f..fc9154d42c6a 100644
--- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx
+++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
@@ -219,7 +219,7 @@ namespace drawinglayer
Color aColor(rSet.Get(SDRATTR_GLOW_COLOR).GetColorValue());
sal_uInt16 nTransparency(rSet.Get(SDRATTR_GLOW_TRANSPARENCY).GetValue());
if (nTransparency)
- aColor.SetTransparency(std::round(nTransparency / 100.0 * 255.0));
+ aColor.SetAlpha(255 - std::round(nTransparency / 100.0 * 255.0));
attribute::SdrGlowAttribute glowAttr{ nRadius, aColor };
return glowAttr;