vcl/source/filter/png/PngImageReader.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit aa04887fd1aee3f182b81b7c2176cccd1c69a397
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Thu Apr 15 20:11:37 2021 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Thu Apr 15 21:15:09 2021 +0200

    do not clear gray bitmaps in png loader
    
    See 750f9f2ac4f713115b07c6ab8db014ff6e3270a9, but I accidentally
    left this in because the gray commit was after that.
    
    Change-Id: I37d38ccac4d7da15e471cc2b5a8fe931988bc7b6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114171
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/vcl/source/filter/png/PngImageReader.cxx 
b/vcl/source/filter/png/PngImageReader.cxx
index 898ef74d5836..ff2d8b0a47a0 100644
--- a/vcl/source/filter/png/PngImageReader.cxx
+++ b/vcl/source/filter/png/PngImageReader.cxx
@@ -351,7 +351,6 @@ bool reader(SvStream& rStream, BitmapEx& rBitmapEx,
     }
     else if (colorType == PNG_COLOR_TYPE_GRAY)
     {
-        aBitmap.Erase(COL_WHITE);
         for (int pass = 0; pass < nNumberOfPasses; pass++)
         {
             for (png_uint_32 y = 0; y < height; y++)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to