plotting/plotit.c, cleanup search for common y_type

This commit is contained in:
rlar 2015-12-15 19:48:28 +01:00
parent 18426c755d
commit f97e4a2a35
1 changed files with 5 additions and 5 deletions

View File

@ -966,12 +966,12 @@ plotit(wordlist *wl, char *hcopy, char *devname)
goto quit;
}
/* See if there is one type we can give for the y scale... */
for (j = vecs->v_type, d = vecs->v_link2; d; d = d->v_link2)
if (d->v_type != j) {
j = SV_NOTYPE;
/* See if there is one common v_type we can give for the y scale... */
for (d = vecs->v_link2; d; d = d->v_link2)
if (d->v_type != vecs->v_type)
break;
}
j = d ? SV_NOTYPE : vecs->v_type;
#ifndef X_DISPLAY_MISSING
if (devname && eq(devname, "xgraph")) {