From: handa Date: Wed, 22 Sep 2010 03:46:17 +0000 (+0000) Subject: (OTF_check_features): If language is specified but not found, return 0 X-Git-Tag: REL-0-9-12~2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e82129639d46b119f5d4935132cce722e7039384;p=m17n%2Flibotf.git (OTF_check_features): If language is specified but not found, return 0 instead of using the default langsys. --- diff --git a/src/otfopen.c b/src/otfopen.c index 299c23b..8aa062d 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -3210,8 +3210,10 @@ OTF_check_features (OTF *otf, int gsubp, for (i = 0; i < Script->LangSysCount && ! LangSys; i++) if (Script->LangSysRecord[i].LangSysTag == language) LangSys = Script->LangSys + i; + if (! LangSys) + return 0; } - if (! LangSys) + else LangSys = &Script->DefaultLangSys; for (j = 0; j < n_features; j++) {