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

std::min on unitialized value

Change-Id: I3d1fdf90094170f8b256bbd0a9af28b69ef16a8c
Reviewed-on: https://gerrit.libreoffice.org/53662Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6a226816
......@@ -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)
......
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