return vector located in plot type given by 'name',
not just from the current plot
This commit is contained in:
parent
872ec89692
commit
a3ead0bec5
|
|
@ -878,7 +878,7 @@ apply_func(struct func *func, struct pnode *arg)
|
|||
fprintf(cp_err, "Error: bad v() syntax\n");
|
||||
return (NULL);
|
||||
}
|
||||
t = vec_fromplot(arg->pn_value->v_name, plot_cur);
|
||||
t = vec_fromplot(arg->pn_value->v_name, get_plot(arg->pn_value->v_plot->pl_typename));
|
||||
if (!t) {
|
||||
fprintf(cp_err, "Error: no such vector %s\n", arg->pn_value->v_name);
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue