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



commit 9d6e8e23df52be6f00dfb23aa3dab8dbb8f9b16a
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.
    (cherry picked from commit 55f025e469baeda3a3fe5c898835ddc1af5dc733)

 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 2739f3e..b201117 100644
--- a/app/display/gimpdisplayshell-close.c
+++ b/app/display/gimpdisplayshell-close.c
@@ -301,9 +301,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]