summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-09-25 14:29:30 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-09-30 12:10:50 +0200
commit3c0fc2ca962275dcd8bc28c68b6717257b6066ec (patch)
tree17553fa9792c270680eea51278874be0e1cfea36 /vcl
parent452696d3775e0bbf867fc7476373a184c7fc098c (diff)
fix Printer::EmulateDrawTransparent
after commit 9153a36b59f2efc2bfb2c9256c39eb5687808deb Author: Chris Sherlock <chris.sherlock79@gmail.com> 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 <noel.grandin@collabora.co.uk> Tested-by: Jenkins (cherry picked from commit 747e2676ec0681c6cd8789ab9218b437e17474b5) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173914 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/print.cxx5
1 files changed, 0 insertions, 5 deletions
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<tools::Long>( basegfx::fround<tools::Long>( aDPISize.Width() / 300. ), 1 );