[Libreoffice-commits] core.git: filter/source

Caolán McNamara caolanm at redhat.com
Wed Sep 20 15:31:30 UTC 2017


 filter/source/graphicfilter/itiff/itiff.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit ffd6efb959f72ab2ef7a015ce64158277eb6cdac
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Sep 20 14:54:50 2017 +0100

    ofz#2298 don't reuse previous frame alpha is this frame has no alpha
    
    Change-Id: Ie5a50e8aafdafdbeaa66f07e1f99bb7785e7ee64
    Reviewed-on: https://gerrit.libreoffice.org/42550
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx
index 279bfbed1095..3bc57cd3098c 100644
--- a/filter/source/graphicfilter/itiff/itiff.cxx
+++ b/filter/source/graphicfilter/itiff/itiff.cxx
@@ -1340,8 +1340,9 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
                 else
                     nDstBitsPerPixel = 8;
 
-                Size aTargetSize( nImageWidth, nImageLength );
-                aBitmap = Bitmap( aTargetSize, nDstBitsPerPixel );
+                pAlphaMask.reset();
+                Size aTargetSize(nImageWidth, nImageLength);
+                aBitmap = Bitmap(aTargetSize, nDstBitsPerPixel);
                 xAcc = Bitmap::ScopedWriteAccess(aBitmap);
                 if (xAcc && xAcc->Width() == nImageWidth && xAcc->Height() == nImageLength)
                 {


More information about the Libreoffice-commits mailing list