[ot] Ensure layout in hb_ot_layout_table_get_lookup_count()

This commit is contained in:
Behdad Esfahbod 2017-12-01 12:36:26 -08:00
parent d9066afd6b
commit be9e307a88
1 changed files with 1 additions and 0 deletions

View File

@ -601,6 +601,7 @@ unsigned int
hb_ot_layout_table_get_lookup_count (hb_face_t *face,
hb_tag_t table_tag)
{
if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return 0;
switch (table_tag)
{
case HB_OT_TAG_GSUB: