vcl/source/gdi/print.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit 747e2676ec0681c6cd8789ab9218b437e17474b5
Author: Noel Grandin <[email protected]>
AuthorDate: Wed Sep 25 14:29:30 2024 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Wed Sep 25 22:12:40 2024 +0200
fix Printer::EmulateDrawTransparent
after
commit 9153a36b59f2efc2bfb2c9256c39eb5687808deb
Author: Chris Sherlock <[email protected]>
Date: Fri Mar 28 23:30:02 2014 +1100
fdo#74702 Refactor OutputDevice::DrawTransparent()
where it looks like a copy/paste error resulted in the metafile
and mpAlphaVDev being restored too early.
Change-Id: Ib2989927166bc2da7c8da6274f295a73218386fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173935
Reviewed-by: Noel Grandin <[email protected]>
Tested-by: Jenkins
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 399f0286b6ca..ce3e3786a450 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -221,11 +221,6 @@ void Printer::EmulateDrawTransparent ( const
tools::PolyPolygon& rPolyPoly,
GDIMetaFile* pOldMetaFile = mpMetaFile;
mpMetaFile = nullptr;
- mpMetaFile = pOldMetaFile;
-
- // #110958# Restore disabled alpha VDev
- mpAlphaVDev = pOldAlphaVDev;
-
tools::Rectangle aPolyRect( LogicToPixel( rPolyPoly ).GetBoundRect()
);
const Size aDPISize( LogicToPixel(Size(1, 1),
MapMode(MapUnit::MapInch)) );
const tools::Long nBaseExtent = std::max<tools::Long>(
basegfx::fround<tools::Long>( aDPISize.Width() / 300. ), 1 );