[GSUB] Oops, fix Extension check

This commit is contained in:
Behdad Esfahbod 2009-05-18 05:22:32 -04:00
parent 2e8fb6c38d
commit 3dcb12f171

View File

@ -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,