Revert "take the plot data vector from the node selected - not the current plot"
This reverts commit 125600db9f.
This commit is contained in:
parent
125600db9f
commit
21ef095b4e
|
|
@ -878,13 +878,7 @@ apply_func(struct func *func, struct pnode *arg)
|
|||
fprintf(cp_err, "Error: bad v() syntax\n");
|
||||
return (NULL);
|
||||
}
|
||||
/* function 'v': take the plot data vector from the node selected - not the current plot */
|
||||
if (func->fu_name && eq(func->fu_name, "v")) {
|
||||
t = arg->pn_value;
|
||||
}
|
||||
else {
|
||||
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