From 3c0fc2ca962275dcd8bc28c68b6717257b6066ec Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Sep 2024 14:29:30 +0200 Subject: fix Printer::EmulateDrawTransparent after commit 9153a36b59f2efc2bfb2c9256c39eb5687808deb Author: Chris Sherlock 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 Tested-by: Jenkins (cherry picked from commit 747e2676ec0681c6cd8789ab9218b437e17474b5) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173914 Reviewed-by: Xisco Fauli --- vcl/source/gdi/print.cxx | 5 ----- 1 file changed, 5 deletions(-) (limited to 'vcl') diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index 06625a4227bd..3b4fd7c9c8db 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( basegfx::fround( aDPISize.Width() / 300. ), 1 ); -- cgit