summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-09-21 13:40:38 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-09-21 13:40:38 -0400
commit73f94ec879476f52adac105570f4cebe5bd02c0c (patch)
tree286cccc6e458fd85a62108ccb0c15d7dd928a512
parent730bed768e8eb4ed14d21bd390403d8bfed71742 (diff)
downloadpango-73f94ec879476f52adac105570f4cebe5bd02c0c.tar.gz
[HB] Fix bug in chain_context_lookup() invocations
Part of Bug 595539 - Regressions in rendering certain Thai sequences with OpenType font
-rw-r--r--pango/opentype/hb-ot-layout-gsubgpos-private.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/opentype/hb-ot-layout-gsubgpos-private.hh b/pango/opentype/hb-ot-layout-gsubgpos-private.hh
index b21939ac..e96e4e39 100644
--- a/pango/opentype/hb-ot-layout-gsubgpos-private.hh
+++ b/pango/opentype/hb-ot-layout-gsubgpos-private.hh
@@ -567,7 +567,7 @@ struct ChainRule
const ArrayOf<LookupRecord> &lookup = CONST_NEXT (ArrayOf<LookupRecord>, lookahead);
return chain_context_lookup (APPLY_ARG,
backtrack.len, backtrack.array,
- input.len, input.array + 1,
+ input.len, input.array,
lookahead.len, lookahead.array,
lookup.len, lookup.array,
lookup_context);
@@ -749,7 +749,7 @@ struct ChainContextFormat3
};
return chain_context_lookup (APPLY_ARG,
backtrack.len, (USHORT *) backtrack.array,
- input.len, (USHORT *) input.array,
+ input.len, (USHORT *) input.array + 1,
lookahead.len, (USHORT *) lookahead.array,
lookup.len, lookup.array,
lookup_context);