diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-26 03:27:08 -0500 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-06-28 09:10:37 +0000 |
commit | 776de8a2394e6adecc9b46920f3e84f522b5c149 (patch) | |
tree | 142a32074b2f2f411348b3fe409a0fe982ad22a7 | |
parent | 335891b6b20a90734e2af8bddf9ba535cc3a8e93 (diff) |
coverity#1027396 : Logically dead code
Change-Id: Ia1d0358b95e036f3866487db12cb42e0e81d76cf
Reviewed-on: https://gerrit.libreoffice.org/4532
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | vcl/source/gdi/dibtools.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx index c4b3bfec31fd..6a15ade6b6cb 100644 --- a/vcl/source/gdi/dibtools.cxx +++ b/vcl/source/gdi/dibtools.cxx @@ -1111,14 +1111,7 @@ bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* if(bWriteAlpha) { - if(pAccAlpha) - { - *pTmp++ = (sal_uInt8)0xff - (sal_uInt8)pAccAlpha->GetPixelIndex( nY, nX ); - } - else - { - *pTmp++ = (sal_uInt8)0xff; - } + *pTmp++ = (sal_uInt8)0xff - (sal_uInt8)pAccAlpha->GetPixelIndex( nY, nX ); } } |