summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-07-29 16:10:09 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2020-07-29 17:21:50 +0200
commitf3c67b783a5dcdf874c6109d36fae8f411e885be (patch)
tree8e7863af9035def156ebf5a100aaef4065717de3 /vcl/source/outdev
parentbc44e0acef79a2c0d4f0504023be21bd78451214 (diff)
tdf#135264: draw to mpAlphaVDev after DrawTransparentNatively
Otherwise the transparency is lost for the cases where mpAlphaVDev is used. Change-Id: Ic7b92cb69727dbe8901695ba496878f0ea381826 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99694 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/transparent.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx
index a9e2ae080e8c..717e9584162a 100644
--- a/vcl/source/outdev/transparent.cxx
+++ b/vcl/source/outdev/transparent.cxx
@@ -695,10 +695,9 @@ void OutputDevice::DrawTransparent( const tools::PolyPolygon& rPolyPoly,
// try hard to draw it directly, because the emulation layers are slower
bDrawn = DrawTransparentNatively( rPolyPoly, nTransparencePercent );
- if( bDrawn )
- return;
- EmulateDrawTransparent( rPolyPoly, nTransparencePercent );
+ if (!bDrawn)
+ EmulateDrawTransparent( rPolyPoly, nTransparencePercent );
// #110958# Apply alpha value also to VDev alpha channel
if( mpAlphaVDev )