[gegl] affine: revert functional change in commit 7320d0
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] affine: revert functional change in commit 7320d0
- Date: Mon, 22 Mar 2010 00:25:02 +0000 (UTC)
commit 0fc9cf7be1eef6511d26b2c26dec9153c26b3bd0
Author: �yvind Kolås <pippin gimp org>
Date: Mon Mar 22 00:19:31 2010 +0000
affine: revert functional change in commit 7320d0
This makes GEGLs pass make check, but might reintroduce the issues
faced in Bug 609869 in GIMP - Invalid position of layer content when
using GEGL. The coding style fixes are kept.
operations/affine/affine.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/operations/affine/affine.c b/operations/affine/affine.c
index 840f499..3908112 100644
--- a/operations/affine/affine.c
+++ b/operations/affine/affine.c
@@ -472,9 +472,8 @@ gegl_affine_get_bounding_box (GeglOperation *op)
if (gegl_operation_source_get_bounding_box (op, "input"))
in_rect = *gegl_operation_source_get_bounding_box (op, "input");
- gegl_affine_create_matrix (affine, affine->matrix);
-
- gegl_matrix3_copy (matrix, affine->matrix);
+ gegl_matrix3_identity (matrix);
+ gegl_affine_create_matrix (affine, matrix);
if (affine->origin_x || affine->origin_y)
gegl_matrix3_originate (matrix, affine->origin_x, affine->origin_y);
@@ -510,7 +509,7 @@ gegl_affine_get_bounding_box (GeglOperation *op)
have_points [7] = in_rect.y + in_rect.height ;
for (i = 0; i < 8; i += 2)
- gegl_matrix3_transform_point (affine->matrix,
+ gegl_matrix3_transform_point (matrix,
have_points + i, have_points + i + 1);
gegl_affine_bounding_box (have_points, 4, &have_rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]