[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Dec 10 09:36:57 UTC 2020


 vcl/source/bitmap/bitmappaint.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit da71f806ad09ace88c509a9af7346f0e3f29b744
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Dec 9 19:50:02 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Dec 10 10:36:24 2020 +0100

    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 at redhat.com>

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)
         {


More information about the Libreoffice-commits mailing list