diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 17:37:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-21 15:22:10 +0200 |
commit | 6c0fe24140b11874a519001d58a0c503840b3a94 (patch) | |
tree | 322fc18a1315af65b4d4ec5121710cf0d89f6838 /vcl | |
parent | 5d6dc06db98385a8d4bb821f27df58b88e4bf25f (diff) |
pvs-studio: Expression 'mnInterlaced == 0' is always true.
Change-Id: Ie7f62b8eabf12010aa8f1ab03ca2f65d9c6856ed
Reviewed-on: https://gerrit.libreoffice.org/62069
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pngwrite.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx index b9fd9988c9bc..c62e2d177b0b 100644 --- a/vcl/source/gdi/pngwrite.cxx +++ b/vcl/source/gdi/pngwrite.cxx @@ -116,10 +116,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx, { Bitmap aBmp(rBmpEx.GetBitmap()); - mnInterlaced = 0; // ( aBmp.GetSizePixel().Width() > 128 ) || ( aBmp.GetSizePixel().Height() > 128 ) ? 1 : 0; #i67236# - - // #i67234# defaulting max chunk size to 256kb when using interlace mode - mnMaxChunkSize = mnInterlaced == 0 ? std::numeric_limits<sal_uInt32>::max() : 0x40000; + mnMaxChunkSize = std::numeric_limits<sal_uInt32>::max(); if (pFilterData) { |