[gimp] Bug 687673 - The image has been exported to '(null)' when export...



commit 55f025e469baeda3a3fe5c898835ddc1af5dc733
Author: Michael Natterer <mitch gimp org>
Date:   Tue Nov 6 22:10:37 2012 +0100

    Bug 687673 - The image has been exported to '(null)' when export...
    
    Show the imported URI if the exported URI is NULL, they are equivalent
    for this dialog.

 app/display/gimpdisplayshell-close.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-close.c b/app/display/gimpdisplayshell-close.c
index d2c95c4..6836b0a 100644
--- a/app/display/gimpdisplayshell-close.c
+++ b/app/display/gimpdisplayshell-close.c
@@ -300,9 +300,16 @@ gimp_display_shell_close_time_changed (GimpMessageBox *box)
     }
 
   if (! gimp_image_is_export_dirty (image))
-    export_text =
-      g_strdup_printf (_("The image has been exported to '%s'."),
-                       gimp_image_get_exported_uri (image));
+    {
+      const gchar *exported_uri = gimp_image_get_exported_uri (image);
+
+      if (! exported_uri)
+        exported_uri = gimp_image_get_imported_uri (image);
+
+      export_text =
+        g_strdup_printf (_("The image has been exported to '%s'."),
+                         exported_uri);
+    }
 
   if (time_text && export_text)
     gimp_message_box_set_text (box, "%s\n\n%s", time_text, export_text);



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