summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-04-15 20:11:37 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-04-15 21:15:09 +0200
commitaa04887fd1aee3f182b81b7c2176cccd1c69a397 (patch)
tree910602acce34e61598e91e072a8568dba61db293 /vcl
parentb94a2dc95dce8c67ddb9f01f7bd91da2a5759d9c (diff)
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.lunak@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/png/PngImageReader.cxx1
1 files changed, 0 insertions, 1 deletions
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++)