[dia] [image] message_error message should have trailing \n



commit 72bd464f13b6d7608d0178677ded76732c717058
Author: Hans Breuer <hans breuer org>
Date:   Thu Dec 19 21:53:53 2013 +0100

    [image] message_error message should have trailing \n

 lib/dia_image.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/dia_image.c b/lib/dia_image.c
index 22362c3..681ed2e 100644
--- a/lib/dia_image.c
+++ b/lib/dia_image.c
@@ -171,11 +171,11 @@ dia_image_load(const gchar *filename)
   image = gdk_pixbuf_new_from_file(filename, &error);
   if (image == NULL) {
     /* dia_image_load() function is also (mis)used to check file
-     * existance. Don't warn if the file is simply not there but
+     * existence. Don't warn if the file is simply not there but
      * only if there is something else wrong while loading it.
      */
     if (g_file_test(filename, G_FILE_TEST_EXISTS))
-      message_warning ("%s", error->message);
+      message_warning ("%s\n", error->message);
     g_error_free (error);
     return NULL;
   }
@@ -325,10 +325,10 @@ dia_image_save(DiaImage *image, const gchar *filename)
       image->filename = g_strdup (filename);
     } else if (!type) {
       /* pathologic case - pixbuf not even supporting PNG? */
-      message_error(_("Unsupported file format for saving:\n%s\n%s"),
+      message_error(_("Unsupported file format for saving:\n%s\n%s\n"),
                     dia_message_filename(filename));
     } else {
-      message_warning(_("Could not save file:\n%s\n%s"),
+      message_warning(_("Could not save file:\n%s\n%s\n"),
                      dia_message_filename(filename),
                       error->message);
       g_error_free (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]