From d31bd957ac726792b642458c83575a5c14740895 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 2 Nov 2010 08:15:41 -0300 Subject: [PATCH] cameo/gnuplot.c (gnuplot_do_write): only write r_tool hint if non-zero --- cameo/gnuplot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cameo/gnuplot.c b/cameo/gnuplot.c index 566567b..d02e8e0 100644 --- a/cameo/gnuplot.c +++ b/cameo/gnuplot.c @@ -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;