commit | 7727e737566ddc826647e19fc645b296ad5a0cac | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Oct 10 13:24:51 2018 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Oct 10 13:24:51 2018 -0400 |
tree | 637659128925e289e704b8297ede137dcd934cdb | |
parent | b3390990f508def9c375716614b92fc7b0038228 [diff] [blame] |
[kerx] Actually hook up, and fix crash
diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh index 5845ab5..37ab535 100644 --- a/src/hb-aat-layout-common.hh +++ b/src/hb-aat-layout-common.hh
@@ -260,6 +260,12 @@ } } + inline const T& get_value_or_null (hb_codepoint_t glyph_id, unsigned int num_glyphs) const + { + const T *v = get_value (glyph_id, num_glyphs); + return v ? *v : Null(T); + } + inline bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this);