Add back a null check

This was accidentally dropped in the previous commit.
This commit is contained in:
Matthias Clasen 2023-01-29 11:25:28 -05:00
parent 318aa10708
commit a451aa5465
1 changed files with 2 additions and 0 deletions

View File

@ -1898,6 +1898,8 @@ struct cmap
bool get_nominal_glyph (hb_codepoint_t unicode,
hb_codepoint_t *glyph) const
{
if (unlikely (!this->get_glyph_funcZ)) return false;
return this->get_glyph_funcZ (this->get_glyph_data, unicode, glyph);
}