From 3dcb12f171ebbf44461e6ce6439d286c9520dd88 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 18 May 2009 05:22:32 -0400 Subject: [PATCH] [GSUB] Oops, fix Extension check --- src/hb-ot-layout-gsub-private.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-ot-layout-gsub-private.h b/src/hb-ot-layout-gsub-private.h index 1db04a9bf..75ff827f7 100644 --- a/src/hb-ot-layout-gsub-private.h +++ b/src/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,