fixed Index::serialize
The bug was causing CharString of the last glyph corrupt
This commit is contained in:
parent
16f4dc9b73
commit
3bda54c43b
|
@ -256,11 +256,13 @@ struct Index
|
||||||
|
|
||||||
/* serialize indices */
|
/* serialize indices */
|
||||||
unsigned int offset = 1;
|
unsigned int offset = 1;
|
||||||
for (unsigned int i = 0; i < bytesArray.len; i++)
|
unsigned int i = 0;
|
||||||
|
for (; i < bytesArray.len; i++)
|
||||||
{
|
{
|
||||||
set_offset_at (i, offset);
|
set_offset_at (i, offset);
|
||||||
offset += bytesArray[i].len;
|
offset += bytesArray[i].len;
|
||||||
}
|
}
|
||||||
|
set_offset_at (i, offset);
|
||||||
|
|
||||||
/* serialize data */
|
/* serialize data */
|
||||||
for (unsigned int i = 0; i < bytesArray.len; i++)
|
for (unsigned int i = 0; i < bytesArray.len; i++)
|
||||||
|
|
Loading…
Reference in New Issue