summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-12 09:59:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 13:03:52 +0000
commitc92c8b28bd199286b5e9b0d8c6ad6b85e33b2ae3 (patch)
tree87ab3845e403f418bb4bf958280fe708aa89c532 /vcl
parente414cdbf3321d579537b372d815d50c31195ecc3 (diff)
coverity#1093230 Dereference before null check
Change-Id: I6ec85d718726f874864be93268a88604fb84a2b2
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/pngread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index ac63fe7878c5..ea547ccc3ba8 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -1462,7 +1462,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
// BMP_FORMAT_24BIT_TC_RGB
// only use DirectScanline when we have no preview shifting stuff and access to content
const bool bDoDirectScanline(
- bCkeckDirectScanline && !nXStart && 1 == nXAdd && !mnPreviewShift && mpAcc);
+ bCkeckDirectScanline && !nXStart && 1 == nXAdd && !mnPreviewShift);
const bool bCustomColorTable(mpColorTable != mpDefaultColorTable);
if(bDoDirectScanline && !mpScanline)