[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - canvas/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 15 10:06:49 UTC 2021


 canvas/source/tools/canvastools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f7a3e7c982845822fb57cbce2f74d0b70e6727c1
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jun 15 09:27:28 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jun 15 12:06:14 2021 +0200

    fix big-endian code
    
    after the transparency->alpha changes in ::Color
    
    Change-Id: Ifbac6c8f37f18e8acaef0602ef414ae39449ad3c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117209
    Tested-by: René Engelhard <rene at debian.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    (cherry picked from commit 86dc8e1f6273354eaf663299a028d896ad88cc9b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117216
    Tested-by: Jenkins

diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index 53ab7e71f0c5..02af4bb333db 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -895,7 +895,7 @@ namespace canvas::tools
             pCols[0] = rColor.GetRed();
             pCols[1] = rColor.GetGreen();
             pCols[2] = rColor.GetBlue();
-            pCols[3] = 255-rColor.GetTransparency();
+            pCols[3] = rColor.GetAlpha();
 #else
             *reinterpret_cast<sal_Int32*>(pCols) = sal_Int32(rColor);
 #endif


More information about the Libreoffice-commits mailing list