vcl/source/filter/ipsd/ipsd.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7dd9d4bca24ac1dd393397d2acd9931ea4a2f31c Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Mon Jun 23 19:14:48 2025 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Jun 25 11:43:19 2025 +0200 tdf#167152 PSD-Filews created by Photoshop will not be visible regression from commit 81994cb2b8b32453a92bcb011830fcb884f22ff3 Author: Noel Grandin <noelgran...@gmail.com> 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 <noel.gran...@collabora.co.uk> (cherry picked from commit 33560caa34a6532fb27641c19d7cc3bb4dc33057) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186930 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> 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;