diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-22 19:01:08 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-22 19:01:08 +0000 |
commit | 00e73ee5efa865643eaad76565c7375f3fa834be (patch) | |
tree | d2623539a08941402dc17f14d9183b50b8509e34 /converter/ppm/ppmtoilbm.c | |
parent | 64f542175bd276397a333b73397ac3e2d7effaf3 (diff) | |
download | netpbm-mirror-00e73ee5efa865643eaad76565c7375f3fa834be.tar.gz netpbm-mirror-00e73ee5efa865643eaad76565c7375f3fa834be.tar.xz netpbm-mirror-00e73ee5efa865643eaad76565c7375f3fa834be.zip |
Release 10.86.28
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4254 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/ppmtoilbm.c')
-rw-r--r-- | converter/ppm/ppmtoilbm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/converter/ppm/ppmtoilbm.c b/converter/ppm/ppmtoilbm.c index 595aa3f4..c5fa4d00 100644 --- a/converter/ppm/ppmtoilbm.c +++ b/converter/ppm/ppmtoilbm.c @@ -2274,6 +2274,7 @@ main(int argc, char ** argv) { if (colors == 0) pm_error("empty colormap??"); pm_message("%d colors found in colormap", colors); + nPlanes = pm_maxvaltobits(colors-1); } if (maskmethod != mskNone) { |