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))