| commit | 1ad7e5a6c67fddb39a79f62b4b5e93304f6e04b2 | [log] |
|---|---|---|
| author | Luboš Luňák <l.lunak@collabora.com> | Tue Jan 05 14:09:26 2021 +0100 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Mon Jan 11 01:44:59 2021 +0100 |
| tree | 992d45653b46813bdf49f64503f1457fe71d5e13 | |
| parent | 45d39d808cba2ca4735b42b424e3143965ca782d [diff] |
set fill color when filling alphavdev area for gradients (tdf#138959) When drawing a gradient to an alpha-enabled output device, make the area also opaque (=black in the alphavdev). Change-Id: I2ba1a598e0bf6291e5422253352a201e224af2b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108806 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com> (cherry picked from commit 41cabebf9c95459c2c1912528446c45e70c3f203) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108906 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx index 0312369..510502e 100644 --- a/vcl/source/outdev/gradient.cxx +++ b/vcl/source/outdev/gradient.cxx
@@ -148,7 +148,12 @@ void OutputDevice::DrawGradient( const tools::PolyPolygon& rPolyPoly, } if( mpAlphaVDev ) { const Color aFillCol( mpAlphaVDev->GetFillColor() ); mpAlphaVDev->SetFillColor( COL_BLACK ); mpAlphaVDev->DrawPolyPolygon( rPolyPoly ); mpAlphaVDev->SetFillColor( aFillCol ); } } void OutputDevice::ClipAndDrawGradientMetafile ( const Gradient &rGradient, const tools::PolyPolygon &rPolyPoly )