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

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Thu Mar 28 13:50:04 UTC 2019


 vcl/source/gdi/bitmapex.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e051b74e274c78d91ce69b37d896861816f5b6ea
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Wed Mar 13 17:23:42 2019 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Thu Mar 28 14:49:41 2019 +0100

    fix transparency handling in BitmapEx::GetPixelColor()
    
    Apparently the Color class uses transparency as the opposite
    of the normally used meaning of opacity, so transparency 255
    means transparent.
    
    Change-Id: I3a76c2c93d98ad3c850017d3fd569b04dc6c19c8
    Reviewed-on: https://gerrit.libreoffice.org/69211
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/69884
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index c81b8b0fd446..5642beba0c4d 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -762,7 +762,7 @@ Color BitmapEx::GetPixelColor(sal_Int32 nX, sal_Int32 nY) const
             aColor.SetTransparency( pAlphaReadAccess->GetPixel( nY, nX ).GetIndex() );
         }
         else
-            aColor.SetTransparency(255);
+            aColor.SetTransparency(0);
         return aColor;
 }
 


More information about the Libreoffice-commits mailing list