https://bugs.documentfoundation.org/show_bug.cgi?id=154631

--- Comment #5 from Julien Nabet <serval2...@yahoo.fr> ---
Created attachment 186545
  --> https://bugs.documentfoundation.org/attachment.cgi?id=186545&action=edit
exported gif file with test patch

This patch helps:
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() )


GetBestPaletteIndex returns sal_uInt16 so convert it to sal_uInt8 before using
WriteUChar.

However it's full transparency, not mid transparency, see the attachment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to