filter/source/graphicfilter/itiff/itiff.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit ffd6efb959f72ab2ef7a015ce64158277eb6cdac Author: Caolán McNamara <[email protected]> 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 <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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) {
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
