tdf#138450 BitmapEx.Replace() is not working
since...
commit abd42bdc86904d1b310e8298393c887e0c195499
Date: Thu Nov 12 14:50:16 2020 +0200
tools::Long->sal_Int32 in vcl filters
Change-Id: I4a74416547f35a9b5b3fe606de6938245d3ec6c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107482
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/source/bitmap/bitmappaint.cxx b/vcl/source/bitmap/bitmappaint.cxx
index 4971386..95a6b0a 100644
--- a/vcl/source/bitmap/bitmappaint.cxx
+++ b/vcl/source/bitmap/bitmappaint.cxx
@@ -926,12 +926,12 @@ bool Bitmap::Replace(const Color* pSearchColors, const Color* pReplaceColors, sa
if (pAcc)
{
std::unique_ptr<sal_Int8[]> pMinR(new sal_Int8[nColorCount]);
std::unique_ptr<sal_Int8[]> pMaxR(new sal_Int8[nColorCount]);
std::unique_ptr<sal_Int8[]> pMinG(new sal_Int8[nColorCount]);
std::unique_ptr<sal_Int8[]> pMaxG(new sal_Int8[nColorCount]);
std::unique_ptr<sal_Int8[]> pMinB(new sal_Int8[nColorCount]);
std::unique_ptr<sal_Int8[]> pMaxB(new sal_Int8[nColorCount]);
std::unique_ptr<int[]> pMinR(new int[nColorCount]);
std::unique_ptr<int[]> pMaxR(new int[nColorCount]);
std::unique_ptr<int[]> pMinG(new int[nColorCount]);
std::unique_ptr<int[]> pMaxG(new int[nColorCount]);
std::unique_ptr<int[]> pMinB(new int[nColorCount]);
std::unique_ptr<int[]> pMaxB(new int[nColorCount]);
if (pTols)
{