vcl/source/bitmap/BitmapEx.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 3622404f09448b82c095256140afe6240b522ece
Author: Noel Grandin <[email protected]>
AuthorDate: Wed Oct 11 12:54:43 2023 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Thu Oct 12 07:57:02 2023 +0200
tdf#157636 FILEOPEN: PPT: Images have no background
regression from
commit 81994cb2b8b32453a92bcb011830fcb884f22ff3
Convert internal vcl bitmap formats transparency->alpha (II)
Change-Id: Ia0ed01e7c0d41bd909fe48666bc9aca5ff31d2bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157824
Tested-by: Jenkins
Reviewed-by: Noel Grandin <[email protected]>
diff --git a/vcl/source/bitmap/BitmapEx.cxx b/vcl/source/bitmap/BitmapEx.cxx
index c9be55521f16..7333aea90cc3 100644
--- a/vcl/source/bitmap/BitmapEx.cxx
+++ b/vcl/source/bitmap/BitmapEx.cxx
@@ -1447,6 +1447,7 @@ void BitmapEx::CombineMaskOr(Color maskColor, sal_uInt8
nTol)
Bitmap aNewMask = maBitmap.CreateMask( maskColor, nTol );
if ( IsAlpha() )
aNewMask.CombineOr( maAlphaMask );
+ aNewMask.Invert();
maAlphaMask = aNewMask;
}