[gimp] Filter out child items from the list used to estimate the saled memsize



commit ecacf6f0c3527fd0151f4ac9dba349bff6b4e522
Author: Michael Natterer <mitch gimp org>
Date:   Thu Aug 27 19:41:14 2009 +0200

    Filter out child items from the list used to estimate the saled memsize

 app/core/gimpimage-scale.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimage-scale.c b/app/core/gimpimage-scale.c
index 206ebc8..cd9c347 100644
--- a/app/core/gimpimage-scale.c
+++ b/app/core/gimpimage-scale.c
@@ -270,6 +270,9 @@ gimp_image_scale_check (const GimpImage *image,
                                              GIMP_ITEM_TYPE_LAYERS |
                                              GIMP_ITEM_TYPE_CHANNELS,
                                              GIMP_ITEM_SET_ALL);
+
+  gimp_image_item_list_filter (NULL, drawables, TRUE, FALSE);
+
   drawables = g_list_prepend (drawables, gimp_image_get_mask (image));
 
   scalable_size = 0;



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