diff --git a/src/report/report-gnome/gnc-plugin-page-report.c b/src/report/report-gnome/gnc-plugin-page-report.c index d8b4a630d1..badb1695c0 100644 --- a/src/report/report-gnome/gnc-plugin-page-report.c +++ b/src/report/report-gnome/gnc-plugin-page-report.c @@ -1406,6 +1406,10 @@ gnc_get_export_filename (SCM choice) filepath = gnc_file_dialog (title, NULL, default_dir, GNC_FILE_DIALOG_EXPORT); + /* Try to test for extension on file name, add if missing */ + if (g_strrstr(filepath,".") == NULL) + filepath = g_strconcat(filepath,".",g_ascii_strdown(type,strlen(type)),NULL); + g_free (title); g_free (default_dir);