diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-30 15:18:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-30 17:21:00 +0200 |
commit | d951118c8faa2cfc3e439134ead9ec8eee5b81d2 (patch) | |
tree | 56530b0a91eec945a5c581cdad6e985c69301aad /vcl | |
parent | 6a226816bc526af5f5056b613ddc3bbf0663c045 (diff) |
std::min on unitialized value
Change-Id: I3d1fdf90094170f8b256bbd0a9af28b69ef16a8c
Reviewed-on: https://gerrit.libreoffice.org/53662
Tested-by: Jenkins <ci@libreoffice.org>
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/bitmap/BitmapSimpleColorQuantizationFilter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |