mirror of https://github.com/GNOME/gimp.git
when re-adding a layer with mask, don't forget to set layer->mask->removed
2004-03-28 Michael Natterer <mitch@gimp.org> * app/core/gimpimage-undo-push.c (undo_pop_layer): when re-adding a layer with mask, don't forget to set layer->mask->removed to FALSE.
This commit is contained in:
parent
77447984cc
commit
0af7cfa584
|
@ -1,3 +1,8 @@
|
|||
2004-03-28 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage-undo-push.c (undo_pop_layer): when re-adding
|
||||
a layer with mask, don't forget to set layer->mask->removed to FALSE.
|
||||
|
||||
2004-03-28 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpitem.[ch]: added "gboolean removed" to the GimpItem
|
||||
|
|
|
@ -1400,6 +1400,9 @@ undo_pop_layer (GimpUndo *undo,
|
|||
gimp_image_floating_selection_changed (undo->gimage);
|
||||
|
||||
GIMP_ITEM (layer)->removed = FALSE;
|
||||
|
||||
if (layer->mask)
|
||||
GIMP_ITEM (layer->mask)->removed = FALSE;
|
||||
}
|
||||
|
||||
if (old_has_alpha != gimp_image_has_alpha (undo->gimage))
|
||||
|
|
Loading…
Reference in New Issue