[gimp] app: use gimp_channel_is_empty() not gimp_channel_bounds() in xcf_save_image()



commit e64e9d05998e45471654df316291829c81f1b1ce
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 30 21:59:26 2015 +0200

    app: use gimp_channel_is_empty() not gimp_channel_bounds() in xcf_save_image()
    
    We are not interested in the selection bounds, only if there is a
    selection at all.

 app/xcf/xcf-save.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/xcf/xcf-save.c b/app/xcf/xcf-save.c
index 269075d..7d25229 100644
--- a/app/xcf/xcf-save.c
+++ b/app/xcf/xcf-save.c
@@ -209,7 +209,6 @@ xcf_save_image (XcfInfo    *info,
   guint    n_channels;
   guint    progress = 0;
   guint    max_progress;
-  gint     t1, t2, t3, t4;
   gchar    version_tag[16];
   GError  *tmp_error = NULL;
 
@@ -246,8 +245,7 @@ xcf_save_image (XcfInfo    *info,
   all_channels = gimp_image_get_channel_list (image);
 
   /* check and see if we have to save out the selection */
-  if (gimp_channel_bounds (gimp_image_get_mask (image),
-                           &t1, &t2, &t3, &t4))
+  if (! gimp_channel_is_empty (gimp_image_get_mask (image)))
     {
       all_channels = g_list_append (all_channels, gimp_image_get_mask (image));
     }


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