Fix requiredFeature stage handling logic
Originally the way Jonathan had written this was correct in "continue"ing:35e28c7a73 (diff-ead86a33a5cc9ad7f6e6381031a0baddR199)
When I rewrote his patch, I messed it up:da13293798 (diff-ead86a33a5cc9ad7f6e6381031a0baddR209)
the intended behavior was NOT to set found=TRUE and NOT to continue. This was resulting in feature_index[table_index] being left unset. Oops!
This commit is contained in:
parent
68b6296d33
commit
731a430cd3
|
@ -204,11 +204,8 @@ hb_ot_map_builder_t::compile (hb_ot_map_t &m)
|
||||||
for (unsigned int table_index = 0; table_index < 2; table_index++)
|
for (unsigned int table_index = 0; table_index < 2; table_index++)
|
||||||
{
|
{
|
||||||
if (required_feature_tag[table_index] == info->tag)
|
if (required_feature_tag[table_index] == info->tag)
|
||||||
{
|
|
||||||
required_feature_stage[table_index] = info->stage[table_index];
|
required_feature_stage[table_index] = info->stage[table_index];
|
||||||
found = true;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
found |= hb_ot_layout_language_find_feature (face,
|
found |= hb_ot_layout_language_find_feature (face,
|
||||||
table_tags[table_index],
|
table_tags[table_index],
|
||||||
script_index[table_index],
|
script_index[table_index],
|
||||||
|
|
Loading…
Reference in New Issue