Fix rle encoding, first byte of run was added to previous non-run.

This commit is contained in:
HJ Imbens 2015-11-25 09:35:57 +01:00 committed by Jehan
parent 10360c9e13
commit c3dc3ea59f

View file

@ -1654,6 +1654,13 @@ xcf_save_tile_rle (XcfInfo *info,
{
const guchar *t;
/* if we came here because of a new run, backup one */
if (!((length == 32768) || ((size - length) == 0)))
{
length--;
data -= bpp;
}
count += length;
state = 0;