mirror of https://github.com/GNOME/gimp.git
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:
parent
61ac7167d6
commit
dc2e81ca52
|
@ -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>
|
2004-02-01 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
Reworked random seed handling once more:
|
Reworked random seed handling once more:
|
||||||
|
|
|
@ -867,15 +867,11 @@ xcf_load_layer (XcfInfo *info,
|
||||||
if (! layer_mask)
|
if (! layer_mask)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* set the offsets of the layer_mask */
|
layer_mask->apply_mask = apply_mask;
|
||||||
GIMP_ITEM (layer_mask)->offset_x = GIMP_ITEM (layer)->offset_x;
|
layer_mask->edit_mask = edit_mask;
|
||||||
GIMP_ITEM (layer_mask)->offset_y = GIMP_ITEM (layer)->offset_y;
|
layer_mask->show_mask = show_mask;
|
||||||
|
|
||||||
gimp_layer_add_mask (layer, layer_mask, FALSE);
|
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... */
|
/* attach the floating selection... */
|
||||||
|
|
Loading…
Reference in New Issue