[gsubgpos] Minor simplification
Just changed the order, no functional change
This commit is contained in:
parent
1a48278511
commit
cc977b6e5c
|
@ -1073,18 +1073,19 @@ static inline bool ligate_input (hb_ot_apply_context_t *c,
|
|||
buffer->idx++;
|
||||
}
|
||||
|
||||
if (!is_mark_ligature && last_lig_id) {
|
||||
if (!is_mark_ligature && last_lig_id)
|
||||
{
|
||||
/* Re-adjust components for any marks following. */
|
||||
for (unsigned int i = buffer->idx; i < buffer->len; i++) {
|
||||
if (last_lig_id == _hb_glyph_info_get_lig_id (&buffer->info[i])) {
|
||||
unsigned int this_comp = _hb_glyph_info_get_lig_comp (&buffer->info[i]);
|
||||
if (!this_comp)
|
||||
break;
|
||||
unsigned int new_lig_comp = components_so_far - last_num_components +
|
||||
hb_min (this_comp, last_num_components);
|
||||
_hb_glyph_info_set_lig_props_for_mark (&buffer->info[i], lig_id, new_lig_comp);
|
||||
} else
|
||||
break;
|
||||
for (unsigned i = buffer->idx; i < buffer->len; ++i)
|
||||
{
|
||||
if (last_lig_id != _hb_glyph_info_get_lig_id (&buffer->info[i])) break;
|
||||
|
||||
unsigned this_comp = _hb_glyph_info_get_lig_comp (&buffer->info[i]);
|
||||
if (!this_comp) break;
|
||||
|
||||
unsigned new_lig_comp = components_so_far - last_num_components +
|
||||
hb_min (this_comp, last_num_components);
|
||||
_hb_glyph_info_set_lig_props_for_mark (&buffer->info[i], lig_id, new_lig_comp);
|
||||
}
|
||||
}
|
||||
return_trace (true);
|
||||
|
|
Loading…
Reference in New Issue