[gimp] Bug 604508 - gimp-layer-new-from-visible should work from updated projection



commit 335597ce7d92c22e9ecb90c21176b6b43dae5459
Author: Michael Natterer <mitch gimp org>
Date:   Mon Dec 14 14:00:01 2009 +0100

    Bug 604508 - gimp-layer-new-from-visible should work from updated projection
    
    Call gimp_pickable_flush(projection) before creating a new layer from it.

 app/actions/layers-commands.c |    2 ++
 app/pdb/layer-cmds.c          |    2 ++
 tools/pdbgen/pdb/layer.pdb    |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/layers-commands.c b/app/actions/layers-commands.c
index 3614055..400944d 100644
--- a/app/actions/layers-commands.c
+++ b/app/actions/layers-commands.c
@@ -348,6 +348,8 @@ layers_new_from_visible_cmd_callback (GtkAction *action,
 
   pickable = GIMP_PICKABLE (gimp_image_get_projection (image));
 
+  gimp_pickable_flush (pickable);
+
   layer = gimp_layer_new_from_tiles (gimp_pickable_get_tiles (pickable),
                                      image,
                                      gimp_image_base_type_with_alpha (image),
diff --git a/app/pdb/layer-cmds.c b/app/pdb/layer-cmds.c
index 3254db6..3d692f2 100644
--- a/app/pdb/layer-cmds.c
+++ b/app/pdb/layer-cmds.c
@@ -113,6 +113,8 @@ layer_new_from_visible_invoker (GimpProcedure      *procedure,
     {
       GimpPickable *pickable = GIMP_PICKABLE (gimp_image_get_projection (image));
 
+      gimp_pickable_flush (pickable);
+
       layer = gimp_layer_new_from_tiles (gimp_pickable_get_tiles (pickable),
                                          dest_image,
                                          gimp_image_base_type_with_alpha (dest_image),
diff --git a/tools/pdbgen/pdb/layer.pdb b/tools/pdbgen/pdb/layer.pdb
index f01aa28..d8f7c99 100644
--- a/tools/pdbgen/pdb/layer.pdb
+++ b/tools/pdbgen/pdb/layer.pdb
@@ -96,6 +96,8 @@ HELP
 {
   GimpPickable *pickable = GIMP_PICKABLE (gimp_image_get_projection (image));
 
+  gimp_pickable_flush (pickable);
+
   layer = gimp_layer_new_from_tiles (gimp_pickable_get_tiles (pickable),
                                      dest_image,
                                      gimp_image_base_type_with_alpha (dest_image),



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