[gegl] cl: error handling



commit 87afdace2da09ffbcc1dd8464378fb4075ee8aca
Author: Victor Oliveira <victormatheus gmail com>
Date:   Sat Mar 31 15:37:16 2012 -0300

    cl: error handling

 operations/common/write-buffer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/write-buffer.c b/operations/common/write-buffer.c
index 80e2591..d926ad3 100644
--- a/operations/common/write-buffer.c
+++ b/operations/common/write-buffer.c
@@ -78,6 +78,9 @@ process (GeglOperation       *operation,
                     }
                 }
             }
+
+          if (cl_err || err)
+            gegl_buffer_copy (input, result, output, result);
         }
       else
         gegl_buffer_copy (input, result, output, result);



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