[gegl/soc-2012-ville: 8/14] correct size control for testing tool



commit b17ea0e4364e7208333e0992992ae57b8c51d812
Author: Ville Sokk <ville sokk gmail com>
Date:   Mon Jul 9 12:49:16 2012 +0300

    correct size control for testing tool

 bin/gegl-tester.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/bin/gegl-tester.c b/bin/gegl-tester.c
index 361125c..37d095d 100644
--- a/bin/gegl-tester.c
+++ b/bin/gegl-tester.c
@@ -133,7 +133,8 @@ process_operations (GType type)
               comp_bounds = gegl_node_get_bounding_box (composition);
               ref_pixels  = ref_bounds.width * ref_bounds.height;
 
-              if (ref_pixels != (comp_bounds.width * comp_bounds.height))
+              if (ref_bounds.width != comp_bounds.width ||
+                  ref_bounds.height != comp_bounds.height)
                 {
                   g_printf ("FAIL\n  Reference and composition differ in size\n");
                   result = FALSE;



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