summaryrefslogtreecommitdiff
path: root/pango/opentype/hb-ot-layout-gsub-private.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-04 23:24:35 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-04 23:24:35 -0400
commit2e28925934eac99d59ba3a9257071e0e735d0819 (patch)
treeb47aabc4b358afc639568d1e9d10b69ad9456f6a /pango/opentype/hb-ot-layout-gsub-private.hh
parent4928a22c1eb696d4f9b2d52837ac229c0eb63307 (diff)
downloadpango-2e28925934eac99d59ba3a9257071e0e735d0819.tar.gz
[HB] Fix a couple other sanitize() bugs
Diffstat (limited to 'pango/opentype/hb-ot-layout-gsub-private.hh')
-rw-r--r--pango/opentype/hb-ot-layout-gsub-private.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/opentype/hb-ot-layout-gsub-private.hh b/pango/opentype/hb-ot-layout-gsub-private.hh
index 7b421dbb..a46006df 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.hh
+++ b/pango/opentype/hb-ot-layout-gsub-private.hh
@@ -822,7 +822,7 @@ struct SubstLookup : Lookup
inline bool sanitize (SANITIZE_ARG_DEF) {
SANITIZE_DEBUG ();
- if (Lookup::sanitize (SANITIZE_ARG)) return false;
+ if (!Lookup::sanitize (SANITIZE_ARG)) return false;
OffsetArrayOf<SubstLookupSubTable> &list = (OffsetArrayOf<SubstLookupSubTable> &) subTable;
return SANITIZE_THIS (list);
}
@@ -855,7 +855,7 @@ struct GSUB : GSUBGPOS
bool sanitize (SANITIZE_ARG_DEF) {
SANITIZE_DEBUG ();
- if (GSUBGPOS::sanitize (SANITIZE_ARG)) return false;
+ if (!GSUBGPOS::sanitize (SANITIZE_ARG)) return false;
OffsetTo<SubstLookupList> &list = CAST(OffsetTo<SubstLookupList>, lookupList, 0);
return SANITIZE_THIS (list);
}