1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-05 21:02:42 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabriele
740f5013b8 Merge branch 'gabrybarbe-fix-resize-undo' into 'master'
Issue #14922: force push resize undo on pasted layers

Closes #14922

See merge request GNOME/gimp!2480
2025-10-05 15:22:31 +02:00
Gabriele Barbero
182aa67ce1 actions: force push resize undo on pasted layers
Previously, the pasted layers have resize undo disabled, which
causes problems if the user resizes the image and then tries to
undo the resize. This commit enables resize undo on pasted
layers, so that the user can properly undo a resize operation.
2025-10-05 13:22:29 +00:00

View File

@@ -720,6 +720,12 @@ edit_paste (GimpDisplay *display,
{
gimp_image_set_selected_layers (image, pasted_layers);
for (GList *iter = pasted_layers; iter; iter = iter->next)
{
if (GIMP_IS_DRAWABLE (iter->data))
gimp_drawable_enable_resize_undo (GIMP_DRAWABLE (iter->data));
}
g_list_free (pasted_layers);
gimp_image_flush (image);
}