From afdf3ff71052d6e271c16f9c02ea2be203619751 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 27 Jul 2019 17:55:23 +0200 Subject: [PATCH] Partially undo commit 016c558d7, 2019-05-01 If sacles for plotting differ, issue a warning. Skip this plot command only, when strict_errorhandling is set. --- src/frontend/plotting/plotit.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frontend/plotting/plotit.c b/src/frontend/plotting/plotit.c index f280cdee8..d53f7b436 100644 --- a/src/frontend/plotting/plotit.c +++ b/src/frontend/plotting/plotit.c @@ -903,9 +903,14 @@ plotit(wordlist *wl, char *hcopy, char *devname) int firstscalelength = vecs->v_scale->v_length; for (d = vecs; d; d = d->v_link2) if (firstscalelength != d->v_length) { - fprintf(cp_err, "\nError: length of vector %s and its scale differ.\n", d->v_name); - fprintf(cp_err, " cannot plot!\n"); - goto quit; + fprintf(cp_err, "\nWarning: length of vector %s and its scale differ.\n", d->v_name); + /* Do not plot when strict_errorhandling is set */ + if (ft_stricterror) { + fprintf(cp_err, " Cannot plot!\n"); + goto quit; + } + else + fprintf(cp_err, " Check the plot data!\n"); } }