1
0
forked from GitHub/gf-core

properly skip unknown languages in pgf_write_pgf

This commit is contained in:
Krasimir Angelov
2024-03-14 18:08:22 +01:00
parent 280e11cab6
commit a8c5a4f93f

View File

@@ -455,7 +455,10 @@ void PgfWriter::write_pgf(ref<PgfPGF> pgf)
size_t len = 0;
PgfText** p = langs;
while (*p) {
len++; p++;
if (namespace_lookup(pgf->concretes, *p) != 0) {
len++;
}
p++;
}
write_len(len);
}