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