diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 15:55:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 17:03:07 +0000 |
commit | 06cfc634cd8d91a78be6692cd6954aabfbe37712 (patch) | |
tree | 674659cd4d9744f81418e8fa719d8615a655e114 /vcl | |
parent | c9b41602a0149b16ada3b46ee56dab987c836658 (diff) |
coverity#735559 Logically dead code
Change-Id: I75205d46243c18bbd63532aea1965a0e058ef739
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/fixed.cxx | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx index 76a5dc93182d..3bdb5131943d 100644 --- a/vcl/source/control/fixed.cxx +++ b/vcl/source/control/fixed.cxx @@ -864,36 +864,17 @@ FixedBitmap::~FixedBitmap() void FixedBitmap::ImplDraw( OutputDevice* pDev, sal_uLong /* nDrawFlags */, const Point& rPos, const Size& rSize ) { - sal_uInt16 nStyle = 0; Bitmap* pBitmap = &maBitmap; - if( nStyle & IMAGE_DRAW_COLORTRANSFORM ) - { - // only images support IMAGE_DRAW_COLORTRANSFORM - Image aImage( maBitmap ); - if ( !(!aImage) ) - { - if ( GetStyle() & WB_SCALE ) - pDev->DrawImage( rPos, rSize, aImage, nStyle ); - else - { - Point aPos = ImplCalcPos( GetStyle(), rPos, aImage.GetSizePixel(), rSize ); - pDev->DrawImage( aPos, aImage, nStyle ); - } - } - } - else + // do we have a Bitmap? + if ( !(!(*pBitmap)) ) { - // do we have a Bitmap? - if ( !(!(*pBitmap)) ) + if ( GetStyle() & WB_SCALE ) + pDev->DrawBitmap( rPos, rSize, *pBitmap ); + else { - if ( GetStyle() & WB_SCALE ) - pDev->DrawBitmap( rPos, rSize, *pBitmap ); - else - { - Point aPos = ImplCalcPos( GetStyle(), rPos, pBitmap->GetSizePixel(), rSize ); - pDev->DrawBitmap( aPos, *pBitmap ); - } + Point aPos = ImplCalcPos( GetStyle(), rPos, pBitmap->GetSizePixel(), rSize ); + pDev->DrawBitmap( aPos, *pBitmap ); } } } |