vcl/source/filter/ipsd/ipsd.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 33560caa34a6532fb27641c19d7cc3bb4dc33057
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon Jun 23 19:14:48 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Jun 23 21:45:57 2025 +0200

    tdf#167152 PSD-Filews created by Photoshop will not be visible
    
    regression from
        commit 81994cb2b8b32453a92bcb011830fcb884f22ff3
        Author: Noel Grandin <[email protected]>
        Date:   Fri Apr 16 20:33:10 2021 +0200
        Convert internal vcl bitmap formats transparency->alpha (II)
    
    Change-Id: I995e5edef0e16a75b3ea702259753a480d825133
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186854
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/vcl/source/filter/ipsd/ipsd.cxx b/vcl/source/filter/ipsd/ipsd.cxx
index 887dccce1bf3..4b376255c4f4 100644
--- a/vcl/source/filter/ipsd/ipsd.cxx
+++ b/vcl/source/filter/ipsd/ipsd.cxx
@@ -727,7 +727,7 @@ bool PSDReader::ImplReadBody()
                     m_rPSD.ReadUChar( nDummy );
                 for ( sal_uInt16 i = 0; i < ( -nRunCount + 1 ); i++ )
                 {
-                    mpBitmap->SetAlpha(nY, nX, nDat ? 255 : 0);
+                    mpBitmap->SetAlpha(nY, nX, nDat ? 0 : 255);
                     if ( ++nX == mpFileHeader->nColumns )
                     {
                         nX = 0;
@@ -748,7 +748,7 @@ bool PSDReader::ImplReadBody()
                         nDat = 1;
                     if ( mpFileHeader->nDepth == 16 )   // 16 bit depth is to 
be skipped
                         m_rPSD.ReadUChar( nDummy );
-                    mpBitmap->SetAlpha(nY, nX, nDat ? 255 : 0);
+                    mpBitmap->SetAlpha(nY, nX, nDat ? 0 : 255);
                     if ( ++nX == mpFileHeader->nColumns )
                     {
                         nX = 0;

Reply via email to