From: handa Date: Mon, 12 Nov 2007 12:31:44 +0000 (+0000) Subject: (ft_check_otf): Fix arg to OTF_check_features. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=dea73cb8f8aff816c60dd4e4559490503f705fcf;p=m17n%2Fm17n-lib.git (ft_check_otf): Fix arg to OTF_check_features. --- diff --git a/src/font-ft.c b/src/font-ft.c index 6452b49..1c59534 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -2181,8 +2181,9 @@ ft_check_otf (MFLTFont *font, MFLTOtfSpec *spec) else tags[n] = spec->features[i][n]; } - if (OTF_check_features (otf, i, spec->script, spec->langsys, - tags, n - negative) != 1) + if (n - negative > 0 + && OTF_check_features (otf, i == 0, spec->script, spec->langsys, + tags, n - negative) != 1) return 0; } return 1;