commit | a451aa5465ed80963f09c9f0290979608b1d675e | [log] [tgz] |
---|---|---|
author | Matthias Clasen <mclasen@redhat.com> | Sun Jan 29 11:25:28 2023 -0500 |
committer | Matthias Clasen <mclasen@redhat.com> | Sun Jan 29 11:25:28 2023 -0500 |
tree | 7eb18eb5779630d9ecf06a3bc8ce286b5cea5d77 | |
parent | 318aa107082cf4ab1c2fcc5f0bf2ead145216e1d [diff] |
Add back a null check This was accidentally dropped in the previous commit.
diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh index 3c6c87f..9f8818e 100644 --- a/src/hb-ot-cmap-table.hh +++ b/src/hb-ot-cmap-table.hh
@@ -1898,6 +1898,8 @@ 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); }