about summary refs log tree commit diff
path: root/converter/other/rasttopnm.c
diff options
context:
space:
mode:
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 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) {