[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Mon Apr 30 15:21:21 UTC 2018
vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d951118c8faa2cfc3e439134ead9ec8eee5b81d2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Apr 30 15:18:46 2018 +0100
std::min on unitialized value
Change-Id: I3d1fdf90094170f8b256bbd0a9af28b69ef16a8c
Reviewed-on: https://gerrit.libreoffice.org/53662
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
index 3ffade558c41..437d01137f0a 100644
--- a/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
+++ b/vcl/source/bitmap/BitmapSimpleColorQuantizationFilter.cxx
@@ -32,7 +32,7 @@ BitmapEx BitmapSimpleColorQuantizationFilter::execute(BitmapEx const& aBitmapEx)
{
Bitmap aNewBmp;
Bitmap::ScopedReadAccess pRAcc(aBitmap);
- const sal_uInt16 nColorCount = std::min(nColorCount, sal_uInt16(256));
+ const sal_uInt16 nColorCount = std::min(mnNewColorCount, sal_uInt16(256));
sal_uInt16 nBitCount = 0;
if (pRAcc)
More information about the Libreoffice-commits
mailing list