summaryrefslogtreecommitdiff
path: root/vcl/source/filter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-04-10 14:42:42 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-04-10 15:36:16 +0200
commit3ebe2e7170b093bfd1c417b5907f713df591654a (patch)
tree0df06580cb197e4b163e355cd45cef55c722f04c /vcl/source/filter
parent8761510ae5cef17a293f464dc3abc84f46516ff2 (diff)
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.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r--vcl/source/filter/egif/egif.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/egif/egif.cxx b/vcl/source/filter/egif/egif.cxx
index 3aae0478cbe8..f908b6235133 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() )