From: handa Date: Mon, 12 Jul 2004 01:50:41 +0000 (+0000) Subject: (get_langsys): If script is NULL, use the first X-Git-Tag: REL-0-9-1~46 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=73f53abe4fc5e9095efb4ebd7ffa3d865adb0099;p=m17n%2Flibotf.git (get_langsys): If script is NULL, use the first one in script_list. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index 2b18522..59b8114 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -126,7 +126,8 @@ get_langsys (OTF_ScriptList *script_list, char *script, char *language) int i, j; for (i = 0; i < script_list->ScriptCount; i++) - if (script_list->Script[i].ScriptTag == script_tag) + if (! script_tag + || script_list->Script[i].ScriptTag == script_tag) { OTF_Script *script = script_list->Script + i;