diff options
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 2efc59b8..285fc5e0 100644 --- a/converter/other/rasttopnm.c +++ b/converter/other/rasttopnm.c @@ -104,6 +104,8 @@ analyzeImage(struct rasterfile const header, bool const grayscale = header.ras_maplength == 0 || colorMapIsGrayscale(colorMap); + *grayscaleP = grayscale; + switch (header.ras_depth) { case 1: if (header.ras_maptype == RMT_NONE && header.ras_maplength == 0) { |