(ft_check_otf): Fix arg to OTF_check_features.
authorhanda <handa>
Mon, 12 Nov 2007 12:31:44 +0000 (12:31 +0000)
committerhanda <handa>
Mon, 12 Nov 2007 12:31:44 +0000 (12:31 +0000)
src/font-ft.c

index 6452b49..1c59534 100644 (file)
@@ -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;