diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c index 202ab3439f..3374c3de42 100644 --- a/app/core/gimpimage.c +++ b/app/core/gimpimage.c @@ -5497,6 +5497,7 @@ gimp_image_add_layers (GimpImage *image, gimp_image_add_layer (image, GIMP_LAYER (new_item), parent, position, TRUE); + gimp_drawable_enable_resize_undo (GIMP_DRAWABLE (new_item)); position++; } diff --git a/app/display/gimpdisplayshell-dnd.c b/app/display/gimpdisplayshell-dnd.c index 3d50f613e1..5a72d84c53 100644 --- a/app/display/gimpdisplayshell-dnd.c +++ b/app/display/gimpdisplayshell-dnd.c @@ -292,6 +292,7 @@ gimp_display_shell_drop_drawable (GtkWidget *widget, gimp_image_add_layer (image, new_layer, GIMP_IMAGE_ACTIVE_PARENT, -1, TRUE); + gimp_drawable_enable_resize_undo (GIMP_DRAWABLE (new_layer)); gimp_image_undo_group_end (image);