[gimp] plug-ins: fix tiff comment getting saved when save comment is unchecked.



commit c7efae0cff58f568ab487f99d13dd06993e1d475
Author: Jacob Boerema <jgboerema gmail com>
Date:   Wed Jan 6 22:55:24 2021 -0500

    plug-ins: fix tiff comment getting saved when save comment is unchecked.

 plug-ins/file-tiff/file-tiff-save.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-save.c b/plug-ins/file-tiff/file-tiff-save.c
index bab3879b2b..067c9aa44f 100644
--- a/plug-ins/file-tiff/file-tiff-save.c
+++ b/plug-ins/file-tiff/file-tiff-save.c
@@ -320,6 +320,7 @@ save_layer (TIFF        *tif,
   gint              offset_x, offset_y;
   gint              config_compression;
   gchar            *config_comment;
+  gboolean          config_save_comment;
   gboolean          config_save_transp_pixels;
   gboolean          config_save_geotiff_tags;
   gboolean          config_save_profile;
@@ -327,6 +328,7 @@ save_layer (TIFF        *tif,
   g_object_get (config,
                 "compression",             &config_compression,
                 "gimp-comment",            &config_comment,
+                "save-comment",            &config_save_comment,
                 "save-transparent-pixels", &config_save_transp_pixels,
                 "save-geotiff",            &config_save_geotiff_tags,
                 "save-color-profile",      &config_save_profile,
@@ -655,7 +657,7 @@ save_layer (TIFF        *tif,
 #endif
 
   /* Set TIFF parameters. */
-  if (config_comment && *config_comment)
+  if (config_save_comment && config_comment && *config_comment)
     {
       const gchar *c = config_comment;
       gint         len;


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