[OT] Simplify fallback positioning condition

This commit is contained in:
Behdad Esfahbod 2012-09-06 14:27:15 -04:00
parent 028a1706f8
commit 9433c218b4
1 changed files with 1 additions and 2 deletions

View File

@ -348,8 +348,7 @@ position_cluster (const hb_ot_shape_plan_t *plan,
/* Find the base glyph */
for (unsigned int i = start; i < end; i++)
if (is_a_ligature (buffer->info[i]) ||
!HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&buffer->info[i])))
if (!HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&buffer->info[i])))
{
position_around_base (plan, font, buffer, i, end);
break;