[pango] [HB] Fix bug in chain_context_lookup() invocations



commit 73f94ec879476f52adac105570f4cebe5bd02c0c
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Sep 21 13:40:38 2009 -0400

    [HB] Fix bug in chain_context_lookup() invocations
    
    Part of Bug 595539 - Regressions in rendering certain Thai sequences with
    OpenType font

 pango/opentype/hb-ot-layout-gsubgpos-private.hh |    4 ++--
 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 b21939a..e96e4e3 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]