[gimp] plug-ins: save the metadata of the orig_image_ID in file-jpeg-save
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: save the metadata of the orig_image_ID in file-jpeg-save
- Date: Tue, 5 Nov 2013 07:50:39 +0000 (UTC)
commit 8812abee0a6e3d4bb0cf88ed76923301309c1540
Author: Michael Natterer <mitch gimp org>
Date: Tue Nov 5 08:49:40 2013 +0100
plug-ins: save the metadata of the orig_image_ID in file-jpeg-save
The image_ID might be an export image and already deleted.
plug-ins/file-jpeg/jpeg.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg.c b/plug-ins/file-jpeg/jpeg.c
index 1f0b3ae..9079dcb 100644
--- a/plug-ins/file-jpeg/jpeg.c
+++ b/plug-ins/file-jpeg/jpeg.c
@@ -486,7 +486,8 @@ run (const gchar *name,
if (export == GIMP_EXPORT_EXPORT)
{
/* If the image was exported, delete the new display. */
- /* This also deletes the image. */
+ /* This also deletes the image.
+ */
if (display_ID != -1)
gimp_display_delete (display_ID);
@@ -520,7 +521,7 @@ run (const gchar *name,
gimp_parasite_free (parasite);
/* write metadata */
- metadata = gimp_image_metadata_save_prepare (image_ID,
+ metadata = gimp_image_metadata_save_prepare (orig_image_ID,
"image/jpeg");
if (metadata)
@@ -536,7 +537,7 @@ run (const gchar *name,
if (! jsvals.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/jpeg",
metadata, flags, file,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]