Fix rle encoding, first byte of run was added to previous non-run.
This commit is contained in:
parent
10360c9e13
commit
c3dc3ea59f
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue