diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-04 15:23:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-04 19:45:14 +0100 |
commit | 54a4c75bd35ba684927862f4e859623e91ebcfe8 (patch) | |
tree | 28f34a54bb5d116aef6b55c104159500432e5b95 /vcl/source/filter | |
parent | 0dcfe46be095a0bd570e37d4dcbf569766957fe7 (diff) |
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.grandin@collabora.co.uk>
(cherry picked from commit 1187e2b35bb864808d9d158f0b10d83ce75dbaa7)
Reviewed-on: https://gerrit.libreoffice.org/84428
Diffstat (limited to 'vcl/source/filter')
-rw-r--r-- | vcl/source/filter/jpeg/JpegWriter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx index d99e46e4d8b1..ab016e2935c7 100644 --- a/vcl/source/filter/jpeg/JpegWriter.cxx +++ b/vcl/source/filter/jpeg/JpegWriter.cxx @@ -193,7 +193,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 ) { |