diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-16 15:14:48 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-04-16 23:07:02 +0200 |
commit | 2b32cb7a06e89a86e4a961541b453df31410c126 (patch) | |
tree | c3fa1f7be66b77d69be23657c070c68f3405e80d | |
parent | aec373f9f43a032e465bb4ef61a6d15557f50399 (diff) |
tdf#84294: vcl: fix PDF export of transparent Writer frames in LO 4.3
The transparent frame background is painted opaque because
OutputDevice::DrawTransparent() records a MetaTransparentAction
instead of returning early.
Note that master and 4.4 use drawinglayer to paint backgrounds
so the problem is only visible in 4.3.
(regression from 36b59f2efc2bfb2c9256c39eb5687808deb)
Change-Id: Ide7a076b72123097a9fe099b96d36cda7f7bb082
(cherry picked from commit 581314958f0ddd6c3a0536ce2d7e7e6f0c53a8ec)
Reviewed-on: https://gerrit.libreoffice.org/15342
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | vcl/source/outdev/transparent.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx index d3d7393a55f0..be6ed006a33a 100644 --- a/vcl/source/outdev/transparent.cxx +++ b/vcl/source/outdev/transparent.cxx @@ -611,6 +611,7 @@ void OutputDevice::DrawTransparent( const tools::PolyPolygon& rPolyPoly, if( !mbFillColor || (nTransparencePercent >= 100) ) { DrawInvisiblePolygon( rPolyPoly ); + return; // tdf#84294: do not record it in metafile } // handle metafile recording |