[glyf] Fix a bug I introduced recently

Pass gid to Glyph in trim_padding codepath.
This commit is contained in:
Behdad Esfahbod 2022-06-27 12:39:35 -06:00
parent 97cbc2d40a
commit 34e3f561b5
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ struct glyf_accelerator_t
glyf_impl::Glyph glyph (hb_bytes_t ((const char *) this->glyf_table + start_offset,
end_offset - start_offset), gid);
return needs_padding_removal ? glyf_impl::Glyph (glyph.trim_padding ()) : glyph;
return needs_padding_removal ? glyf_impl::Glyph (glyph.trim_padding (), gid) : glyph;
}
bool