vcl/source/filter/egif/egif.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6f0f99b550ea22f781ef6894e043e175c0a22fc7 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Mon Apr 10 14:42:42 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Apr 10 18:52:11 2023 +0200 tdf#154631: fix Export as gif ignores transparence of objects As noel indicated in https://bugs.documentfoundation.org/show_bug.cgi?id=154631#c6 "GIF does not (as far as I can tell) support partial transparency, it only has full or none transparency. See specs linked from https://en.wikipedia.org/wiki/GIF" Change-Id: Ib110f344a6b8f0fdfd1355e6521d979b33548709 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150184 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> (cherry picked from commit 3ebe2e7170b093bfd1c417b5907f713df591654a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150195 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/filter/egif/egif.cxx b/vcl/source/filter/egif/egif.cxx index 8533dc5835a0..78bcbc4e4a4b 100644 --- a/vcl/source/filter/egif/egif.cxx +++ b/vcl/source/filter/egif/egif.cxx @@ -392,7 +392,7 @@ void GIFWriter::WriteImageExtension( tools::Long nTimer, Disposal eDisposal ) m_rGIF.WriteUChar( 0x04 ); m_rGIF.WriteUChar( cFlags ); m_rGIF.WriteUInt16( nDelay ); - m_rGIF.WriteUChar( m_pAcc->GetBestPaletteIndex( BMP_COL_TRANS ) ); + m_rGIF.WriteUChar( static_cast<sal_uInt8>(m_pAcc->GetBestPaletteIndex( BMP_COL_TRANS )) ); m_rGIF.WriteUChar( 0x00 ); if( m_rGIF.GetError() )