[Libreoffice-bugs] [Bug 141269] FILESAVE: PNG: Incorrect transparency after roundtrip
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 14 10:14:23 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=141269
--- Comment #9 from Xisco Faulí <xiscofauli at libreoffice.org> ---
it seems this change fixes the issue
--- a/vcl/source/filter/png/pngwrite.cxx
+++ b/vcl/source/filter/png/pngwrite.cxx
@@ -563,7 +563,7 @@ sal_uLong PNGWriterImpl::ImplGetFilter(sal_uLong nY,
sal_uLong nXStart, sal_uLon
*pDest++ = rColor.GetRed();
*pDest++ = rColor.GetGreen();
*pDest++ = rColor.GetBlue();
- *pDest++ = 255 -
mpMaskAccess->GetIndexFromData(pScanlineMask, nX);
+ *pDest++ =
mpMaskAccess->GetIndexFromData(pScanlineMask, nX);
}
}
else
however, it breaks the transparency of the icons in the sidebar
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210414/a6f774e2/attachment.htm>
More information about the Libreoffice-bugs
mailing list