mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
app: use gegl_node_has_pad() instead of gegl_node_get_pad()
This commit is contained in:
parent
3e38686693
commit
33479c1086
|
@ -398,8 +398,8 @@ gimp_image_map_apply (GimpImageMap *image_map,
|
|||
g_object_unref (sink_operation);
|
||||
}
|
||||
|
||||
if (gegl_node_get_pad (image_map->operation, "input") &&
|
||||
gegl_node_get_pad (image_map->operation, "output"))
|
||||
if (gegl_node_has_pad (image_map->operation, "input") &&
|
||||
gegl_node_has_pad (image_map->operation, "output"))
|
||||
{
|
||||
/* if there are input and output pads we probably have a
|
||||
* filter OP, connect it on both ends.
|
||||
|
@ -410,7 +410,7 @@ gimp_image_map_apply (GimpImageMap *image_map,
|
|||
image_map->output,
|
||||
NULL);
|
||||
}
|
||||
else if (gegl_node_get_pad (image_map->operation, "output"))
|
||||
else if (gegl_node_has_pad (image_map->operation, "output"))
|
||||
{
|
||||
/* if there is only an output pad we probably have a
|
||||
* source OP, blend its result on top of the original
|
||||
|
|
Loading…
Reference in a new issue