[pango/harfbuzz-ng] [GSUB] Oops, fix Extension check



commit 73460adabb9ccafa3cf990f0a8f78084b9a0973d
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon May 18 05:22:32 2009 -0400

    [GSUB] Oops, fix Extension check
---
 pango/opentype/hb-ot-layout-gsub-private.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/pango/opentype/hb-ot-layout-gsub-private.h b/pango/opentype/hb-ot-layout-gsub-private.h
index 1db04a9..75ff827 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.h
+++ b/pango/opentype/hb-ot-layout-gsub-private.h
@@ -773,8 +773,7 @@ ASSERT_SIZE (GSUB, 10);
 inline bool ExtensionSubstFormat1::substitute (LOOKUP_ARGS_DEF) const {
   unsigned int lookup_type = get_type ();
 
-  /* TODO belongs to sanitize() */
-  if (HB_UNLIKELY (lookup_type == GSUB_ReverseChainSingle))
+  if (HB_UNLIKELY (lookup_type ==  GSUB_Extension))
     return false;
 
   return (*(SubstLookupSubTable *)(((char *) this) + get_offset ())).substitute (LOOKUP_ARGS,



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