mirror of https://github.com/GNOME/gimp.git
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:
parent
15f81f1cb3
commit
335597ce7d
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue