summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-06-26 03:27:08 -0500
committerFridrich Strba <fridrich@documentfoundation.org>2013-06-28 09:10:37 +0000
commit776de8a2394e6adecc9b46920f3e84f522b5c149 (patch)
tree142a32074b2f2f411348b3fe409a0fe982ad22a7 /vcl
parentfix crash when use increase font on table in impress (diff)
downloadcore-776de8a2394e6adecc9b46920f3e84f522b5c149.tar.gz
core-776de8a2394e6adecc9b46920f3e84f522b5c149.zip
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>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/dibtools.cxx9
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 );
}
}