diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-20 14:54:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-20 17:30:02 +0200 |
commit | ec010acad55dd81d735b0a45f498a3e60ffbf0b3 (patch) | |
tree | 85fb8eb9088316d88c47fa0eeca4c203f09f3a6f | |
parent | 6a92a855a0708b2a9ca9c0b8b364b02e84ed703a (diff) |
xAcc always exists at this point
Change-Id: Idea4b63bc8556ddd23c81385a050155b0e0012b3
Reviewed-on: https://gerrit.libreoffice.org/42549
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | filter/source/graphicfilter/itiff/itiff.cxx | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx index 08d57fe9f5bf..279bfbed1095 100644 --- a/filter/source/graphicfilter/itiff/itiff.cxx +++ b/filter/source/graphicfilter/itiff/itiff.cxx @@ -1400,25 +1400,22 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic ) else bStatus = false; - if (xAcc) - { - xAcc.reset(); - xMaskAcc.reset(); + xAcc.reset(); + xMaskAcc.reset(); - if ( bStatus ) - { - BitmapEx aImage; + if ( bStatus ) + { + BitmapEx aImage; - if (pAlphaMask) - aImage = BitmapEx( aBitmap, *pAlphaMask ); - else - aImage = aBitmap; + if (pAlphaMask) + aImage = BitmapEx( aBitmap, *pAlphaMask ); + else + aImage = aBitmap; - AnimationBitmap aAnimationBitmap( aImage, Point( 0, 0 ), aBitmap.GetSizePixel(), - ANIMATION_TIMEOUT_ON_CLICK, Disposal::Back ); + AnimationBitmap aAnimationBitmap( aImage, Point( 0, 0 ), aBitmap.GetSizePixel(), + ANIMATION_TIMEOUT_ON_CLICK, Disposal::Back ); - aAnimation.Insert( aAnimationBitmap ); - } + aAnimation.Insert( aAnimationBitmap ); } } } |