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

Patrick Luby <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #8 from Patrick Luby <[email protected]> ---
I have narrowed down the cause of this bug for all of the attached and linked
documents with the following debug patch.

This debug patch works but it might affect other cases since it is so late in
the rendering process so I need find where the AlphaMask is constructed for
these images and apply the invert there:

diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx
b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 2c3521ace0dd..d194febbdf28 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -476,6 +476,9 @@ void VclProcessor2D::RenderPolygonHairlinePrimitive2D(
 void VclProcessor2D::RenderBitmapPrimitive2D(const
primitive2d::BitmapPrimitive2D& rBitmapCandidate)
 {
     BitmapEx aBitmapEx(rBitmapCandidate.getBitmap());
+    AlphaMask aMask = aBitmapEx.GetAlphaMask();
+    aMask.Invert();
+    aBitmapEx = BitmapEx(aBitmapEx.GetBitmap(), aMask);
     const basegfx::B2DHomMatrix aLocalTransform(maCurrentTransformation
                                                 *
rBitmapCandidate.getTransform());

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

Reply via email to