about summary refs log tree commit diff
path: root/converter/other/rasttopnm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-02-26 21:10:28 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-02-26 21:10:28 +0000
commit5240773e57f21c778d227fd14a3720006f70c83e (patch)
tree3e5e54e9283eb0ae1c9dd82e5c22fdad2e349b3b /converter/other/rasttopnm.c
parentbb2b351149d83ab31f339d0ec45c6e9cc69ac426 (diff)
downloadnetpbm-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.c2
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) {