[OTLayout] Minor fix for apply_lookup()
Should NOT change behavior, since first glyph is a match.
This commit is contained in:
parent
6880f7e19d
commit
7e53415c2d
|
@ -840,13 +840,15 @@ static inline bool apply_lookup (hb_apply_context_t *c,
|
||||||
{
|
{
|
||||||
if (unlikely (c->buffer->idx == end))
|
if (unlikely (c->buffer->idx == end))
|
||||||
return TRACE_RETURN (true);
|
return TRACE_RETURN (true);
|
||||||
while (c->should_skip_current_glyph ())
|
|
||||||
{
|
if (i)
|
||||||
/* No lookup applied for this index */
|
while (c->should_skip_current_glyph ())
|
||||||
c->buffer->next_glyph ();
|
{
|
||||||
if (unlikely (c->buffer->idx == end))
|
/* No lookup applied for this index */
|
||||||
return TRACE_RETURN (true);
|
c->buffer->next_glyph ();
|
||||||
}
|
if (unlikely (c->buffer->idx == end))
|
||||||
|
return TRACE_RETURN (true);
|
||||||
|
}
|
||||||
|
|
||||||
if (lookupCount && i == lookupRecord->sequenceIndex)
|
if (lookupCount && i == lookupRecord->sequenceIndex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue