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:
Michael Natterer 2004-03-28 14:25:42 +00:00 committed by Michael Natterer
parent 77447984cc
commit 0af7cfa584
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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))