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

--- Comment #8 from Patrick Luby (volunteer) <[email protected]> ---
If I apply the following debug patch, on macOS this bug no longer occurs in the
document window, printing, or export to PDF. Unfortunately, this swapping of
code that create alpha masks cause tdf#156630 to reoccur so there must to
something different between the animated images. I will continue debugging and
post again when I have some news:

diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
index d756e6e3b74f..03cecb5c6a7e 100644
--- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
+++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
@@ -180,12 +180,12 @@ namespace drawinglayer::primitive2d
                 BitmapEx bitmap;
                 if( useAlphaMask )
                 {
-                    const AlphaMask
aMaskBitmap(maVirtualDeviceMask->GetBitmap(Point(),
maVirtualDeviceMask->GetOutputSizePixel()));
+                    const Bitmap
aMaskBitmap(maVirtualDeviceMask->GetBitmap(Point(),
maVirtualDeviceMask->GetOutputSizePixel()));
                     bitmap = BitmapEx(aMainBitmap, aMaskBitmap);
                 }
                 else
                 {
-                    Bitmap aMaskBitmap(maVirtualDeviceMask->GetBitmap(Point(),
maVirtualDeviceMask->GetOutputSizePixel()));
+                    AlphaMask
aMaskBitmap(maVirtualDeviceMask->GetBitmap(Point(),
maVirtualDeviceMask->GetOutputSizePixel()));
                     // tdf#156630 invert the alpha mask
                     aMaskBitmap.Invert(); // convert from transparency to
alpha
                     bitmap = BitmapEx(aMainBitmap, aMaskBitmap);

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

Reply via email to