[gimp] app: support src ops in gimp_gegl_apply_operation()



commit b5ff4fbab4cb3f2bc428cdfc1c466758c219d527
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 13 09:42:53 2013 +0200

    app: support src ops in gimp_gegl_apply_operation()

 app/gegl/gimp-gegl-apply-operation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-apply-operation.c b/app/gegl/gimp-gegl-apply-operation.c
index 439e3c6..180007c 100644
--- a/app/gegl/gimp-gegl-apply-operation.c
+++ b/app/gegl/gimp-gegl-apply-operation.c
@@ -68,7 +68,7 @@ gimp_gegl_apply_operation (GeglBuffer          *src_buffer,
   if (! gegl_node_get_parent (operation))
     gegl_node_add_child (gegl, operation);
 
-  if (src_buffer)
+  if (src_buffer && gegl_node_has_pad (operation, "input"))
     {
       GeglNode *src_node;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]