diff options
author | Patrick Luby <plubius@neooffice.org> | 2023-10-23 09:13:29 -0400 |
---|---|---|
committer | Patrick Luby <plubius@neooffice.org> | 2023-10-23 18:29:08 +0200 |
commit | d8ec731e613d840dc7550a3468110a69fd5280e4 (patch) | |
tree | 9d40f9da598ed99c93809604d7fb5cf83364ac62 /vcl | |
parent | c0e687edf47f9bd2735a4e71116a9c1e50900de6 (diff) |
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 <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/BitmapEx.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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++) { |