app: fix duplicating link layers.
Link layer duplicates were reusing the same GimpLink as the original layer, because the properties sync was done after we created a new link object.
This commit is contained in:
parent
3027db96ff
commit
5ff80c7dfb
1 changed files with 2 additions and 2 deletions
|
|
@ -335,14 +335,14 @@ gimp_link_layer_duplicate (GimpItem *item,
|
|||
gint width;
|
||||
gint height;
|
||||
|
||||
gimp_config_sync (G_OBJECT (layer), G_OBJECT (new_layer), 0);
|
||||
|
||||
if (layer->p->link)
|
||||
{
|
||||
link = gimp_link_duplicate (layer->p->link);
|
||||
gimp_link_layer_set_link (new_layer, link, FALSE);
|
||||
}
|
||||
|
||||
gimp_config_sync (G_OBJECT (layer), G_OBJECT (new_layer), 0);
|
||||
|
||||
buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (layer));
|
||||
width = gegl_buffer_get_width (buffer);
|
||||
height = gegl_buffer_get_height (buffer);
|
||||
|
|
|
|||
Loading…
Reference in a new issue