mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 22:15:19 +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 */
|
/* run substitutions */
|
||||||
res = substitute(sub, vars, &out);
|
res = substitute(sub, vars, &out);
|
||||||
free_vars(vars);
|
if (res) {
|
||||||
if (res)
|
b->vars = merge_vars(vars, out);
|
||||||
b->vars = out;
|
free_vars(out);
|
||||||
else
|
} else {
|
||||||
n_bom--;
|
n_bom--;
|
||||||
|
}
|
||||||
|
free_vars(vars);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user