Huw Davies : usp10: Don't compute a pair adjustment for the last glyph.
Alexandre Julliard
julliard at winehq.org
Mon Jan 14 15:55:50 CST 2013
Module: wine
Branch: master
Commit: 0783987a2623448ed3d1064b4bc045dd88276c04
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0783987a2623448ed3d1064b4bc045dd88276c04
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Jan 14 13:17:18 2013 +0000
usp10: Don't compute a pair adjustment for the last glyph.
---
dlls/usp10/opentype.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/opentype.c b/dlls/usp10/opentype.c
index f8cf8a1..d054e32 100644
--- a/dlls/usp10/opentype.c
+++ b/dlls/usp10/opentype.c
@@ -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++)
More information about the wine-cvs
mailing list