no need to set the layer mask's offsets, gimp_layer_add_mask() does this

2004-02-01  Michael Natterer  <mitch@gimp.org>

	* app/xcf/xcf-load.c (xcf_load_layer): no need to set the layer
	mask's offsets, gimp_layer_add_mask() does this for us. Simplified
	mask property assignments.
This commit is contained in:
Michael Natterer 2004-02-01 19:01:28 +00:00 committed by Michael Natterer
parent 61ac7167d6
commit dc2e81ca52
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2004-02-01 Michael Natterer <mitch@gimp.org>
* app/xcf/xcf-load.c (xcf_load_layer): no need to set the layer
mask's offsets, gimp_layer_add_mask() does this for us. Simplified
mask property assignments.
2004-02-01 Michael Natterer <mitch@gimp.org>
Reworked random seed handling once more:

View File

@ -867,15 +867,11 @@ xcf_load_layer (XcfInfo *info,
if (! layer_mask)
goto error;
/* set the offsets of the layer_mask */
GIMP_ITEM (layer_mask)->offset_x = GIMP_ITEM (layer)->offset_x;
GIMP_ITEM (layer_mask)->offset_y = GIMP_ITEM (layer)->offset_y;
layer_mask->apply_mask = apply_mask;
layer_mask->edit_mask = edit_mask;
layer_mask->show_mask = show_mask;
gimp_layer_add_mask (layer, layer_mask, FALSE);
layer->mask->apply_mask = apply_mask;
layer->mask->edit_mask = edit_mask;
layer->mask->show_mask = show_mask;
}
/* attach the floating selection... */