gegl r2661 - in trunk: . gegl/process



Author: martinn
Date: Tue Oct 21 21:10:43 2008
New Revision: 2661
URL: http://svn.gnome.org/viewvc/gegl?rev=2661&view=rev

Log:
* gegl/process/gegl-processor.c (gegl_processor_work): Simplified
by putting duplicated code in one place.


Modified:
   trunk/ChangeLog
   trunk/gegl/process/gegl-processor.c

Modified: trunk/gegl/process/gegl-processor.c
==============================================================================
--- trunk/gegl/process/gegl-processor.c	(original)
+++ trunk/gegl/process/gegl-processor.c	Tue Oct 21 21:10:43 2008
@@ -665,6 +665,11 @@
       return TRUE;
     }
 
+  if (progress)
+    {
+      *progress = 1.0;
+    }
+
   if (processor->context)
     {
       /* the actual writing to the destination */
@@ -675,19 +680,10 @@
                               );
       gegl_node_remove_context (processor->node, cache);
       processor->context = NULL;
-      if (progress)
-        {
-          *progress = 1.0;
-        }
 
       return TRUE;
     }
 
-  if (progress)
-    {
-      *progress = 1.0;
-    }
-
   return FALSE;
 }
 



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