mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
Merge pull request #7 from linebender/fix_item_ref
Clear item ref on empty segments
This commit is contained in:
commit
064ee86a45
|
@ -119,7 +119,9 @@ void main() {
|
|||
|
||||
start = end;
|
||||
}
|
||||
if (chunk_n_segs > 0) {
|
||||
if (chunk_n_segs == 0) {
|
||||
ItemHeader_write(item_header, ItemHeader(SegChunkRef(0)));
|
||||
} else {
|
||||
SegChunk_write(seg_chunk_ref, SegChunk(chunk_n_segs, SegChunkRef(0)));
|
||||
seg_chunk_ref.offset += SegChunk_size + Segment_size * chunk_n_segs;
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue