diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-09 19:50:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-10 09:53:45 +0100 |
commit | 07779718407b1aec4717fb97ee7d6cedfa121823 (patch) | |
tree | 1a1b8083182ea44f94f02ae50b7b437bd0fc4f37 /vcl | |
parent | 80138a19ac5780169d083e1dadda43b5637912a6 (diff) |
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/+/107503
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/bitmap/bitmappaint.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/bitmap/bitmappaint.cxx b/vcl/source/bitmap/bitmappaint.cxx index 49713869069b..95a6b0af6a3e 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) { |