usp10: Don't compute a pair adjustment for the last glyph.

This commit is contained in:
Huw Davies 2013-01-14 13:17:18 +00:00 committed by Alexandre Julliard
parent 7ba38ad62e
commit 0783987a26
1 changed files with 2 additions and 0 deletions

View File

@ -1253,6 +1253,8 @@ static INT GPOS_apply_PairAdjustment(const OT_LookupTable *look, const SCRIPT_AN
int j;
int write_dir = (analysis->fRTL && !analysis->fLogicalOrder) ? -1 : 1;
if (glyph_index + write_dir < 0 || glyph_index + write_dir >= glyph_count) return glyph_index + 1;
TRACE("Pair Adjustment Positioning Subtable\n");
for (j = 0; j < GET_BE_WORD(look->SubTableCount); j++)