diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-10-15 12:07:51 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-10-18 21:21:42 +0200 |
commit | 81a9e0eb98eacfb50ee1b30d1bbaea7a02594cc6 (patch) | |
tree | 42e592ece9891d65f45aff0428f195574139c30f | |
parent | 560d3b95840221fe9661d46682af7c4ce897193b (diff) |
sd: fix transparency when drawing OverlayPolyPolygon
should be sal_uInt8 not sal_Int8, which means that the we could
have a negative transpareny in some cases.
Change-Id: I53c414878f0d88e58a6a9670f3f49ea23f8990a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104368
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | svx/source/sdr/overlay/overlaypolypolygon.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/overlay/overlaypolypolygon.cxx b/svx/source/sdr/overlay/overlaypolypolygon.cxx index b338d171e551..8abde414faa0 100644 --- a/svx/source/sdr/overlay/overlaypolypolygon.cxx +++ b/svx/source/sdr/overlay/overlaypolypolygon.cxx @@ -59,8 +59,8 @@ namespace sdr::overlay aReturnContainer.push_back(aFill); } - sal_Int8 nTransparency = getBaseColor().GetTransparency(); - if (nTransparency != 0) + sal_uInt8 nTransparency = getBaseColor().GetTransparency(); + if (nTransparency > 0) { const drawinglayer::primitive2d::Primitive2DReference aTransparencePrimitive( new drawinglayer::primitive2d::UnifiedTransparencePrimitive2D(aReturnContainer, nTransparency / 255.0)); |