diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-04 14:27:56 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-04 14:27:56 -0400 |
commit | 091b0e7a2f0799235b95ed80ab35302d1eaf849c (patch) | |
tree | 37d192004313330996a1236953ceaa0ca34f0187 /pango/opentype/hb-ot-layout-gsub-private.hh | |
parent | 14ac615c743186c8aa86691b99d7fef8bfa73f32 (diff) | |
download | pango-091b0e7a2f0799235b95ed80ab35302d1eaf849c.tar.gz |
[HB] Fix Extension sanitize()
Diffstat (limited to 'pango/opentype/hb-ot-layout-gsub-private.hh')
-rw-r--r-- | pango/opentype/hb-ot-layout-gsub-private.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/opentype/hb-ot-layout-gsub-private.hh b/pango/opentype/hb-ot-layout-gsub-private.hh index b221f6f0..a8977ac5 100644 --- a/pango/opentype/hb-ot-layout-gsub-private.hh +++ b/pango/opentype/hb-ot-layout-gsub-private.hh @@ -862,7 +862,8 @@ inline bool ExtensionSubst::apply (APPLY_ARG_DEF) const inline bool ExtensionSubst::sanitize (SANITIZE_ARG_DEF) { return Extension::sanitize (SANITIZE_ARG) && - DECONST_CAST (SubstLookupSubTable, get_subtable (), 0).sanitize (SANITIZE_ARG); + (&(Extension::get_subtable ()) == &Null(LookupSubTable) || + DECONST_CAST (SubstLookupSubTable, get_subtable (), 0).sanitize (SANITIZE_ARG)); } static inline bool substitute_lookup (APPLY_ARG_DEF, unsigned int lookup_index) |