| commit | d8ec731e613d840dc7550a3468110a69fd5280e4 | [log] |
|---|---|---|
| author | Patrick Luby <plubius@neooffice.org> | Mon Oct 23 09:13:29 2023 -0400 |
| committer | Patrick Luby <plubius@neooffice.org> | Mon Oct 23 18:29:08 2023 +0200 |
| tree | 9d40f9da598ed99c93809604d7fb5cf83364ac62 | |
| 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>
diff --git a/vcl/source/bitmap/BitmapEx.cxx b/vcl/source/bitmap/BitmapEx.cxx index 5608254..7160a50 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++) {