https://bugs.documentfoundation.org/show_bug.cgi?id=157576

--- Comment #2 from Patrick Luby <[email protected]> ---
Found the line of code that causes this bug. Problem is that removing the
Invert() causes the image on page 3 to be rendered incorrectly in the exported
PDF. So, the question is what is unique about the animated PNGs.

diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx
b/vcl/source/gdi/pdfwriter_impl2.cxx
index 37583d0b01d1..3b069bdf6bfd 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -811,7 +811,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile&
i_rMtf, vcl::PDFExtOutDevDa
                     if ( aBitmapEx.IsAlpha())
                     {
                         AlphaMask aAlpha = aBitmapEx.GetAlphaMask();
-                        aAlpha.Invert();
+                        // aAlpha.Invert();
                         aBitmapEx = BitmapEx(aBitmapEx.GetBitmap(), aAlpha);
                     }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to