mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
properly skip unknown languages in pgf_write_pgf
This commit is contained in:
@@ -455,7 +455,10 @@ void PgfWriter::write_pgf(ref<PgfPGF> pgf)
|
|||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
PgfText** p = langs;
|
PgfText** p = langs;
|
||||||
while (*p) {
|
while (*p) {
|
||||||
len++; p++;
|
if (namespace_lookup(pgf->concretes, *p) != 0) {
|
||||||
|
len++;
|
||||||
|
}
|
||||||
|
p++;
|
||||||
}
|
}
|
||||||
write_len(len);
|
write_len(len);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user