Fix regression in display of PPM images
commit3205b12a78b6c52b247d8e40a70ccf23693807c5
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Oct 2017 08:14:58 +0000 (16 01:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 16 Oct 2017 08:24:27 +0000 (16 01:24 -0700)
tree7055d0519afc703f838b9ff30baf69d7edc4aac7
parent1ca9ae706975289aaa84cc196f7aa3ebc446713d
Fix regression in display of PPM images

Problem reported by Roland Winkler (Bug#28824#35).
Based on a patch proposed by Andy Moreton (Bug#28824#38).
* src/image.c (pbm_scan_index): New function.
(pbm_load): Use it to decode raw data correctly when its top bit
is set.
src/image.c