[gimp] Bug 705397 - Layer groups are not exported properly/fully



commit 0289eb88984f5e8f187a5a30b39d8c7a34b0637c
Author: Michael Natterer <mitch gimp org>
Date:   Sun Aug 4 14:52:01 2013 +0200

    Bug 705397 - Layer groups are not exported properly/fully
    
    In gimpgrouplayer.c always gimp_pickable_flush() after
    gimp_projectable_structure_changed() so all queued updates are
    actually flushed to the projection buffer's invalid area, and are
    constructed upon reading. This would have been neccessary before for
    group layers, but worked anyway until we changed
    gimp_projection_get_buffer() to construct the buffer on idle time
    initially in order to make images appear more responsively after
    loading.

 app/core/gimpgrouplayer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index dbd4ea2..d807b0f 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -894,6 +894,7 @@ gimp_group_layer_convert_type (GimpDrawable      *drawable,
                                                    new_base_type,
                                                    new_precision);
   gimp_projectable_structure_changed (GIMP_PROJECTABLE (drawable));
+  gimp_pickable_flush (GIMP_PICKABLE (private->projection));
 
   buffer = gimp_pickable_get_buffer (GIMP_PICKABLE (private->projection));
 
@@ -1168,6 +1169,7 @@ gimp_group_layer_update_size (GimpGroupLayer *group)
           private->reallocate_height = height;
 
           gimp_projectable_structure_changed (GIMP_PROJECTABLE (group));
+          gimp_pickable_flush (GIMP_PICKABLE (private->projection));
 
           buffer = gimp_pickable_get_buffer (GIMP_PICKABLE (private->projection));
 


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