From: handa Date: Mon, 23 May 2005 00:23:02 +0000 (+0000) Subject: (OTF_check_features): Fix indexing to feature_list->Feature. X-Git-Tag: REL-0-9-5~67 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f955f59e7afb8a27ae2da29a49c85bdcaf19876;p=m17n%2Flibotf.git (OTF_check_features): Fix indexing to feature_list->Feature. --- diff --git a/src/otfopen.c b/src/otfopen.c index 0b4dc12..5727198 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -2949,7 +2949,8 @@ OTF_check_features (OTF *otf, int gsubp, OTF_Tag feature = features[j]; for (i = 0; i < LangSys->FeatureCount; i++) - if (feature_list->Feature[i].FeatureTag == feature) + if (feature_list->Feature[LangSys->FeatureIndex[i]].FeatureTag + == feature) break; if (i == LangSys->FeatureCount) return 0;