drawinglayer/source/primitive2d/softedgeprimitive2d.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e9dfa816f7002c686ad155682a21a06ec6041b5f
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Aug 28 14:19:58 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Aug 28 18:14:59 2023 +0200

    tdf#156808 soft edge effect makes image (except for soft edge) disappear
    
    This is clearly fallout from
         commit 81994cb2b8b32453a92bcb011830fcb884f22ff3
         Date:   Fri Apr 16 20:33:10 2021 +0200
         Convert internal vcl bitmap formats transparency->alpha (II)
    And it clearly fixes the problem, but I'm not sure __why__ it fixes the
    problem.
    
    Change-Id: I805ed85dd22b2124328e6b4dba098c5f093aec55
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156198
    Tested-by: Jenkins
    Reviewed-by: Patrick Luby <plub...@neooffice.org>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx 
b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
index 27e265ab1ae1..1da2f688d739 100644
--- a/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/softedgeprimitive2d.cxx
@@ -202,6 +202,7 @@ void SoftEdgePrimitive2D::create2DDecomposition(
         const AlphaMask 
blurMask(drawinglayer::primitive2d::ProcessAndBlurAlphaMask(
             aMask, -fDiscreteSoftRadius * fScale, fDiscreteSoftRadius * 
fScale, 0));
         aMask.BlendWith(blurMask);
+        aMask.Invert();
 
         // The end result is the original bitmap with blurred 8-bit alpha mask
         BitmapEx result(aBitmapEx.GetBitmap(), aMask);

Reply via email to