vcl/source/filter/jpeg/JpegWriter.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1187e2b35bb864808d9d158f0b10d83ce75dbaa7 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Dec 4 15:23:59 2019 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Dec 4 17:23:21 2019 +0100 tdf#128992 Compressing PNG files with alpha channel get a black background regression from commit d4442ac1ac9aae36dbc08fda8154d71ea0f81708 Date: Wed May 30 13:02:25 2018 +0200 drop Graphic::GetBitmap Change-Id: I937f89255eebc68dffc2987e628a30bc7d2eed7b Reviewed-on: https://gerrit.libreoffice.org/84412 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx index 0098957a5995..a00bb2ab7d3c 100644 --- a/vcl/source/filter/jpeg/JpegWriter.cxx +++ b/vcl/source/filter/jpeg/JpegWriter.cxx @@ -197,7 +197,8 @@ bool JPEGWriter::Write( const Graphic& rGraphic ) mxStatusIndicator->start( OUString(), 100 ); } - Bitmap aGraphicBmp( rGraphic.GetBitmapEx().GetBitmap() ); + Color replaceColor = COL_WHITE; + Bitmap aGraphicBmp( rGraphic.GetBitmapEx().GetBitmap(&replaceColor) ); if ( mbGreys ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits