[gimp] plug-ins: save the metadata of the original image in file-png-save



commit 4a121c98721519a9690b9cc184979e60d55515da
Author: Michael Natterer <mitch gimp org>
Date:   Thu Nov 21 21:46:34 2013 +0100

    plug-ins: save the metadata of the original image in file-png-save
    
    not the one of the export duplicate.

 plug-ins/common/file-png.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 0468f91..14902f0 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -605,7 +605,7 @@ run (const gchar      *name,
             {
               GimpMetadata *metadata;
 
-              metadata = gimp_image_metadata_save_prepare (image_ID,
+              metadata = gimp_image_metadata_save_prepare (orig_image_ID,
                                                            "image/png");
 
               if (metadata)
@@ -621,7 +621,7 @@ run (const gchar      *name,
                   if (! pngvals.save_thumbnail) flags &= ~GIMP_METADATA_SAVE_THUMBNAIL;
 
                   file = g_file_new_for_path (param[3].data.d_string);
-                  gimp_image_metadata_save_finish (image_ID,
+                  gimp_image_metadata_save_finish (orig_image_ID,
                                                    "image/png",
                                                    metadata, flags, file,
                                                    NULL);


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