(OTF_check_features): Fix indexing to feature_list->Feature.
authorhanda <handa>
Mon, 23 May 2005 00:23:02 +0000 (00:23 +0000)
committerhanda <handa>
Mon, 23 May 2005 00:23:02 +0000 (00:23 +0000)
src/otfopen.c

index 0b4dc12..5727198 100644 (file)
@@ -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;