[gegl/soc-2012-ville: 8/24] correct size control for testing tool
- From: Ville Sokk <villesokk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-ville: 8/24] correct size control for testing tool
- Date: Thu, 2 Aug 2012 18:28:29 +0000 (UTC)
commit fe906be310be0d6137464cbe9715b2b8f5df6dd1
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]