From e722d4426fa43a12dcba8369808b28af4e38b526 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 27 Mar 2021 18:51:04 +0000 Subject: Release 10.73.35 git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@4072 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pnmtopng.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'converter/other/pnmtopng.c') diff --git a/converter/other/pnmtopng.c b/converter/other/pnmtopng.c index 3899a9d2..009d8bb8 100644 --- a/converter/other/pnmtopng.c +++ b/converter/other/pnmtopng.c @@ -962,6 +962,8 @@ tryTransparentColor(FILE * const ifp, } } } + *singleColorIsTransP = singleColorIsTrans; + pnm_freerow(xelrow); } @@ -1469,9 +1471,14 @@ computeUnsortedAlphaPalette(FILE * const ifP, int row; xel * xelrow; unsigned int alphaColorPairCnt; + /* Number of different alpha/color pairs we've seen so far as we + iterate through the image. + */ cht = ppm_colorhisttocolorhash(chv, colors); + /* We have not seen any alphas of any color yet. */ + alphaColorPairCnt = 0; for (colorIndex = 0; colorIndex < colors; ++colorIndex) { alphasOfColor[colorIndex] = NULL; alphasOfColorCnt[colorIndex] = 0; -- cgit 1.4.1