diff --git a/plug-ins/common/file-pnm.c b/plug-ins/common/file-pnm.c index f895a1ef87..73f60a084c 100644 --- a/plug-ins/common/file-pnm.c +++ b/plug-ins/common/file-pnm.c @@ -1388,12 +1388,15 @@ save_image (GFile *file, g_free (cmap); } - /* write out comment string */ - comment = g_strdup_printf("# Created by GIMP version %s PNM plug-in\n", - GIMP_VERSION); + if (!float_format) + { + /* write out comment string */ + comment = g_strdup_printf("# Created by GIMP version %s PNM plug-in\n", + GIMP_VERSION); - if (! output_write (output, comment, strlen (comment), error)) - goto out; + if (! output_write (output, comment, strlen (comment), error)) + goto out; + } /* write out resolution and maxval */ if (pbm)