From dea73cb8f8aff816c60dd4e4559490503f705fcf Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 12 Nov 2007 12:31:44 +0000 Subject: [PATCH] (ft_check_otf): Fix arg to OTF_check_features. --- src/font-ft.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 1.7.10.4