Commit 87525c89 authored by Massimo Valentini's avatar Massimo Valentini Committed by Jehan

BUG 793634: CRITICAL loading psd file with disabled layer mask

Similarly to other layer setter functions, don't push undo
steps if the layer is not yet attached
parent 6d056ff9
......@@ -2116,7 +2116,7 @@ gimp_layer_set_apply_mask (GimpLayer *layer,
{
GimpImage *image = gimp_item_get_image (GIMP_ITEM (layer));
if (push_undo)
if (push_undo && gimp_item_is_attached (GIMP_ITEM (layer)))
gimp_image_undo_push_layer_mask_apply (image,
apply ?
C_("undo-type", "Enable Layer Mask") :
......
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