From 5240773e57f21c778d227fd14a3720006f70c83e Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 26 Feb 2013 21:10:28 +0000 Subject: Version 10.61.04 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1864 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/rasttopnm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'converter/other/rasttopnm.c') 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) { -- cgit 1.4.1