Kaydet (Commit) c27a3171 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1093230 Dereference before null check

Change-Id: Id273eaf3c4fe25df9af723fbc7f774c3c61ab3de
üst f750ee1d
...@@ -1331,7 +1331,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd ) ...@@ -1331,7 +1331,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
// BMP_FORMAT_32BIT_TC_RGBA // BMP_FORMAT_32BIT_TC_RGBA
// only use DirectScanline when we have no preview shifting stuff and accesses to content and alpha // only use DirectScanline when we have no preview shifting stuff and accesses to content and alpha
const bool bDoDirectScanline( const bool bDoDirectScanline(
bCkeckDirectScanline && !nXStart && 1 == nXAdd && !mnPreviewShift && mpAcc && mpMaskAcc); bCkeckDirectScanline && !nXStart && 1 == nXAdd && !mnPreviewShift && mpMaskAcc);
const bool bCustomColorTable(mpColorTable != mpDefaultColorTable); const bool bCustomColorTable(mpColorTable != mpDefaultColorTable);
if(bDoDirectScanline) if(bDoDirectScanline)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment