diff options
-rw-r--r-- | converter/other/rasttopnm.c | 2 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 5 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) { diff --git a/doc/HISTORY b/doc/HISTORY index 44a24b1f..3110464f 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -14,6 +14,9 @@ not yet BJH Release 10.62.00 pamstereogram: change -guidesize default from 10 to 20 (relevant since 10.61). + rasttopnm: fix bug: incorrect output due to used-before-set + variable. Introduced in 10.56 (September 2011). + pamstereogram: fix bug: doesn't reject negative guidesize. Broken since 10.61. |