[gpos] Don't move pointer when match_glyph_data is not set

This commit is contained in:
Ebrahim Byagowi 2019-10-22 00:06:46 +03:30
parent defe9b6da0
commit aca6390281
1 changed files with 8 additions and 8 deletions

View File

@ -387,7 +387,7 @@ struct hb_ot_apply_context_t :
skip == matcher_t::SKIP_NO)) skip == matcher_t::SKIP_NO))
{ {
num_items--; num_items--;
match_glyph_data++; if (match_glyph_data) match_glyph_data++;
return true; return true;
} }
@ -414,7 +414,7 @@ struct hb_ot_apply_context_t :
skip == matcher_t::SKIP_NO)) skip == matcher_t::SKIP_NO))
{ {
num_items--; num_items--;
match_glyph_data++; if (match_glyph_data) match_glyph_data++;
return true; return true;
} }