do not use the current plot, but try to get the plot set in arg...
This commit is contained in:
parent
9ee359b1e9
commit
b4559327de
|
|
@ -878,7 +878,11 @@ apply_func(struct func *func, struct pnode *arg)
|
||||||
fprintf(cp_err, "Error: bad v() syntax\n");
|
fprintf(cp_err, "Error: bad v() syntax\n");
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
t = vec_fromplot(arg->pn_value->v_name, get_plot(arg->pn_value->v_plot->pl_typename));
|
/* try not using the current plot, but the plot set in the arg... vector */
|
||||||
|
if(arg->pn_value->v_plot && arg->pn_value->v_plot->pl_typename)
|
||||||
|
t = vec_fromplot(arg->pn_value->v_name, get_plot(arg->pn_value->v_plot->pl_typename));
|
||||||
|
else
|
||||||
|
t = vec_fromplot(arg->pn_value->v_name, plot_cur);
|
||||||
if (!t) {
|
if (!t) {
|
||||||
fprintf(cp_err, "Error: no such vector %s\n", arg->pn_value->v_name);
|
fprintf(cp_err, "Error: no such vector %s\n", arg->pn_value->v_name);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue