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

Call gimp_pickable_flush(projection) before creating a new layer from it.
This commit is contained in:
Michael Natterer 2009-12-14 14:00:01 +01:00
parent 15f81f1cb3
commit 335597ce7d
3 changed files with 6 additions and 0 deletions

View File

@ -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),

View File

@ -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),

View File

@ -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),