[gegl] gegl:layer fix passthrough redirection in prepare when there is no source



commit 830d98029c60f7b4b464e978e5221aef208af46c
Author: �yvind Kolås <pippin gimp org>
Date:   Sat Dec 5 03:17:45 2009 +0000

    gegl:layer fix passthrough redirection in prepare when there is no source
    
    fixes bug #541468

 operations/common/layer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/layer.c b/operations/common/layer.c
index d16a6c7..fc43d10 100644
--- a/operations/common/layer.c
+++ b/operations/common/layer.c
@@ -102,7 +102,7 @@ prepare (GeglOperation *operation)
 
   if (o->src[0]==0 && self->cached_path == NULL)
     {
-      gegl_node_connect_from (self->opacity, "input", self->aux, "output");
+      gegl_node_link (self->input, self->output);
     }
   else
     { /* FIXME:
@@ -147,6 +147,7 @@ prepare (GeglOperation *operation)
       else
         {
         }
+      gegl_node_link (self->composite_op, self->output);
     }
 
   if (o->scale != self->p_scale)



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