From 3a1a97e8594a1a95fdc1c678672aac16525f6797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Hall=C3=A9?= Date: Mon, 2 Oct 2023 09:34:22 -0400 Subject: [PATCH] Bugfix to Gnuplot Sometimes Gnuplot returns a code that is not 0 but still manages to produce an image; this image is returned --- .../src/ca/uqac/lif/spreadsheet/chart/gnuplot/Gnuplot.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Gnuplot/src/ca/uqac/lif/spreadsheet/chart/gnuplot/Gnuplot.java b/Source/Gnuplot/src/ca/uqac/lif/spreadsheet/chart/gnuplot/Gnuplot.java index ea8239a..8e3dc7f 100755 --- a/Source/Gnuplot/src/ca/uqac/lif/spreadsheet/chart/gnuplot/Gnuplot.java +++ b/Source/Gnuplot/src/ca/uqac/lif/spreadsheet/chart/gnuplot/Gnuplot.java @@ -1,6 +1,6 @@ /* A provenance-aware spreadsheet library - Copyright (C) 2021-2022 Sylvain Hallé + Copyright (C) 2021-2023 Sylvain Hallé This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -296,7 +296,7 @@ else if (term.equals(DUMB)) } } image = runner.getBytes(); - if (runner.getErrorCode() != 0 || image == null || image.length == 0) + if (image == null || image.length == 0) { // Gnuplot could not produce a picture; return the blank image if (term.equals(ChartFormat.PDF))