forked from GitHub/gf-core
filter out results in linearize_all when there is a nonExist
This commit is contained in:
@@ -2235,9 +2235,12 @@ PgfText **pgf_linearize_all(PgfDB *db, PgfConcrRevision revision,
|
|||||||
|
|
||||||
while (linearizer.resolve()) {
|
while (linearizer.resolve()) {
|
||||||
linearizer.linearize(&out, 0);
|
linearizer.linearize(&out, 0);
|
||||||
|
PgfText *text = out.get_text();
|
||||||
|
if (text != NULL) {
|
||||||
variants = (PgfText **) realloc(variants, ((*n_variants)+1)*sizeof(PgfText **));
|
variants = (PgfText **) realloc(variants, ((*n_variants)+1)*sizeof(PgfText **));
|
||||||
variants[(*n_variants)++] = out.get_text();
|
variants[(*n_variants)++] = out.get_text();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return variants;
|
return variants;
|
||||||
} PGF_API_END
|
} PGF_API_END
|
||||||
|
|||||||
Reference in New Issue
Block a user