[Libreoffice-commits] core.git: vcl/source
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 7 15:27:10 UTC 2021
vcl/source/outdev/gradient.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 41cabebf9c95459c2c1912528446c45e70c3f203
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Tue Jan 5 14:09:26 2021 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Thu Jan 7 16:26:29 2021 +0100
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 at collabora.com>
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx
index 5e562c259d96..c6940d8b5965 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 )
More information about the Libreoffice-commits
mailing list