diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index cc1af1572..ba6fab091 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -693,7 +693,9 @@ struct Lookup unsigned int lookup_type = get_type (); TRACE_DISPATCH (this, lookup_type); unsigned int count = get_subtable_count (); - for (unsigned int i = 0; i < count; i++) { + for (unsigned int i = 0; i < count; i++) + { + if (unlikely (!subTable.arrayZ[i])) continue; typename context_t::return_t r = get_subtable (i).dispatch (c, lookup_type); if (c->stop_sublookup_iteration (r)) return_trace (r);