Commit 335597ce authored by Michael Natterer's avatar Michael Natterer 😴

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

Call gimp_pickable_flush(projection) before creating a new layer from it.
parent 15f81f1c
......@@ -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),
......
......@@ -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),
......
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment