[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Oct 21 13:22:32 UTC 2018
vcl/source/gdi/pngwrite.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit 6c0fe24140b11874a519001d58a0c503840b3a94
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 17:37:06 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Oct 21 15:22:10 2018 +0200
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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)
{
More information about the Libreoffice-commits
mailing list