Skip to content

Commit

Permalink
Bugfix to Gnuplot
Browse files Browse the repository at this point in the history
Sometimes Gnuplot returns a code that is not 0 but still manages to produce an image; this image is returned
  • Loading branch information
sylvainhalle committed Oct 2, 2023
1 parent 09e590f commit 3a1a97e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 3a1a97e

Please sign in to comment.