small fix for the pnm loader. It didnt display the last two lines of a file.

Ive only corrected the 24bit RGB one. Ill do the others if raster doesnt
have a more elegant fix for this :).


SVN revision: 4070
This commit is contained in:
Till Adam 2001-01-01 11:52:46 +00:00
parent 365f241ba0
commit b9aca90e0c
1 changed files with 14 additions and 9 deletions

View File

@ -512,7 +512,12 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|| (y == (im->h - 1)))
{
l = y - pl;
if (!progress(im, per, 0, (y - l), im->w, l))
/* fix off by one in case of the last line */
if (y == (im->h -1))
l++;
if (!progress(im, per, 0, pl, im->w, l))
{
if (data)
free(data);