mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2024-12-22 23:04:16 +02:00
cameo/gnuplot.c (gnuplot_do_write): only write r_tool hint if non-zero
This commit is contained in:
parent
ffc908af19
commit
d31bd957ac
@ -88,7 +88,8 @@ static int gnuplot_do_write(FILE *file, const struct path *paths)
|
||||
if (path != paths)
|
||||
if (fprintf(file, "\n") < 0)
|
||||
return 0;
|
||||
if (fprintf(file, "#%%r_tool=%f\n", path->r_tool) < 0)
|
||||
if (path->r_tool &&
|
||||
fprintf(file, "#%%r_tool=%f\n", path->r_tool) < 0)
|
||||
return 0;
|
||||
if (path->outside && fprintf(file, "#%%outside\n") < 0)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user