vcl/source/bitmap/BitmapEx.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit d8ec731e613d840dc7550a3468110a69fd5280e4 Author: Patrick Luby <[email protected]> AuthorDate: Mon Oct 23 09:13:29 2023 -0400 Commit: Patrick Luby <[email protected]> CommitDate: Mon Oct 23 18:29:08 2023 +0200 tdf#157795 set color to black outside of of bitmap bounds Due to commit 81994cb2b8b32453a92bcb011830fcb884f22ff3, transparent areas are now black instead of white. Change-Id: I9456bb2603d4968a5d5df0a7bdbff48ce9a8e2f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158355 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Jenkins Reviewed-by: Patrick Luby <[email protected]> diff --git a/vcl/source/bitmap/BitmapEx.cxx b/vcl/source/bitmap/BitmapEx.cxx index 5608254e68bb..7160a5064453 100644 --- a/vcl/source/bitmap/BitmapEx.cxx +++ b/vcl/source/bitmap/BitmapEx.cxx @@ -677,7 +677,11 @@ namespace if (xRead) { const Size aDestinationSizePixel(aDestination.GetSizePixel()); - const BitmapColor aOutside(BitmapColor(0xff, 0xff, 0xff)); + + // tdf#157795 set color to black outside of of bitmap bounds + // Due to commit 81994cb2b8b32453a92bcb011830fcb884f22ff3, + // transparent areas are now black instead of white. + const BitmapColor aOutside(0x0, 0x0, 0x0); for(tools::Long y(0); y < aDestinationSizePixel.getHeight(); y++) {
