mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-12-22 19:52:26 +02:00
b2/bom.c (bom_subst): include input variables in the part's list of variables
This commit is contained in:
parent
1e21ea8a40
commit
2ce3b7f82b
10
b2/bom.c
10
b2/bom.c
@ -146,11 +146,13 @@ int bom_subst(struct bom *b, const struct subst *sub)
|
||||
|
||||
/* run substitutions */
|
||||
res = substitute(sub, vars, &out);
|
||||
free_vars(vars);
|
||||
if (res)
|
||||
b->vars = out;
|
||||
else
|
||||
if (res) {
|
||||
b->vars = merge_vars(vars, out);
|
||||
free_vars(out);
|
||||
} else {
|
||||
n_bom--;
|
||||
}
|
||||
free_vars(vars);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user