diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-02-26 21:10:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-02-26 21:10:28 +0000 |
commit | 5240773e57f21c778d227fd14a3720006f70c83e (patch) | |
tree | 3e5e54e9283eb0ae1c9dd82e5c22fdad2e349b3b /converter/other/rasttopnm.c | |
parent | bb2b351149d83ab31f339d0ec45c6e9cc69ac426 (diff) | |
download | netpbm-mirror-5240773e57f21c778d227fd14a3720006f70c83e.tar.gz netpbm-mirror-5240773e57f21c778d227fd14a3720006f70c83e.tar.xz netpbm-mirror-5240773e57f21c778d227fd14a3720006f70c83e.zip |
Version 10.61.04
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1864 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/rasttopnm.c')
-rw-r--r-- | converter/other/rasttopnm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/converter/other/rasttopnm.c b/converter/other/rasttopnm.c index ee8b8317..2d081489 100644 --- a/converter/other/rasttopnm.c +++ b/converter/other/rasttopnm.c @@ -97,6 +97,8 @@ analyzeImage(struct rasterfile const header, header.ras_maplength == 0 || colorMapIsGrayscale(colorMap, header.ras_maplength); + *grayscaleP = grayscale; + switch (header.ras_depth) { case 1: if (header.ras_maptype == RMT_NONE && header.ras_maplength == 0) { |