summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-04 15:23:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-04 17:23:21 +0100
commit1187e2b35bb864808d9d158f0b10d83ce75dbaa7 (patch)
tree405cf400da71b0f44e2bdf67df9773fe70d9d1c2 /vcl/source
parenta4ae484ab047193adedaf1c556e2be887f32833c (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>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/filter/jpeg/JpegWriter.cxx3
1 files changed, 2 insertions, 1 deletions
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 )
{