parent
e8abf1fb25
commit
de74605777
|
@ -1716,7 +1716,7 @@ static void read_pnm_header(FILE *reader, struct pnm_header *ph)
|
||||||
}
|
}
|
||||||
if(ph->depth < 1 || ph->depth > 4) return;
|
if(ph->depth < 1 || ph->depth > 4) return;
|
||||||
|
|
||||||
if(ph->width && ph->height && ph->depth & ph->maxval && ttype)
|
if(ph->width && ph->height && ph->depth && ph->maxval && ttype)
|
||||||
ph->ok = 1;
|
ph->ok = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue