diff options
Diffstat (limited to 'converter/other/sgitopnm.c')
-rw-r--r-- | converter/other/sgitopnm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/sgitopnm.c b/converter/other/sgitopnm.c index 2adb76a8..ea2daef3 100644 --- a/converter/other/sgitopnm.c +++ b/converter/other/sgitopnm.c @@ -376,7 +376,7 @@ readChannels(FILE * const ifP, MALLOCARRAY_NOFAIL(image[iindex], head->xsize); if (table) { - if (outChannelSpec && channel >= outChannel) { + if (!outChannelSpec || channel >= outChannel) { long const offset = table[sgiIndex].start; long const length = head->bpc == 2 ? table[sgiIndex].length / 2 : |