projects
/
m17n
/
libotf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(get_langsys): If script is NULL, use the first
[m17n/libotf.git]
/
src
/
otfdrive.c
diff --git
a/src/otfdrive.c
b/src/otfdrive.c
index
2b18522
..
59b8114
100644
(file)
--- 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;