mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
remove obsolete assertion and redundant cast.
2008-10-11 Michael Natterer <mitch@gimp.org> * app/core/gimplayer.c (gimp_layer_get_node): remove obsolete assertion and redundant cast. svn path=/trunk/; revision=27229
This commit is contained in:
parent
302bda6c66
commit
e28e864ac6
|
@ -1,3 +1,8 @@
|
|||
2008-10-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimplayer.c (gimp_layer_get_node): remove obsolete
|
||||
assertion and redundant cast.
|
||||
|
||||
2008-10-11 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpdrawablestack.c: add GimpContainer::add()
|
||||
|
|
|
@ -525,14 +525,12 @@ gimp_layer_get_node (GimpDrawable *drawable)
|
|||
GeglNode *input;
|
||||
GeglNode *output;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_LAYER (layer), NULL);
|
||||
|
||||
if (layer->node)
|
||||
return layer->node;
|
||||
|
||||
layer->node = gegl_node_new ();
|
||||
|
||||
source = gimp_drawable_get_source_node (GIMP_DRAWABLE (layer));
|
||||
source = gimp_drawable_get_source_node (drawable);
|
||||
gegl_node_add_child (layer->node, source);
|
||||
|
||||
if (layer->mask)
|
||||
|
|
Loading…
Reference in a new issue