diff --git a/ChangeLog b/ChangeLog index c080f0bb8e..314370a7a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-08-09 Sven Neumann + + * plug-ins/common/postscript.c (save_ps_header): use the basename + as Title, not the full filename. Fixes bug #149669. + 2004-08-08 Sven Neumann * plug-ins/script-fu/siod/sliba.c (array_prin1): when printing a diff --git a/plug-ins/common/postscript.c b/plug-ins/common/postscript.c index 1861b62366..44fb0c4f86 100644 --- a/plug-ins/common/postscript.c +++ b/plug-ins/common/postscript.c @@ -1923,16 +1923,19 @@ load_ps (const gchar *filename, static void save_ps_header (FILE *ofp, const gchar *filename) { - time_t cutime = time (NULL); + gchar *basename = g_path_get_basename (filename); + time_t cutime = time (NULL); fprintf (ofp, "%%!PS-Adobe-3.0%s\n", psvals.eps ? " EPSF-3.0" : ""); fprintf (ofp, "%%%%Creator: GIMP PostScript file plugin V %4.2f \ by Peter Kirchgessner\n", VERSIO); - fprintf (ofp, "%%%%Title: %s\n", filename); + fprintf (ofp, "%%%%Title: %s\n", basename); fprintf (ofp, "%%%%CreationDate: %s", ctime (&cutime)); fprintf (ofp, "%%%%DocumentData: Clean7Bit\n"); if (psvals.eps || (psvals.level > 1)) fprintf (ofp,"%%%%LanguageLevel: 2\n"); fprintf (ofp, "%%%%Pages: 1\n"); + + g_free (basename); }