diff --git a/ChangeLog b/ChangeLog index 72802b408e..0003bd377e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-05 Sven Neumann + + * app/core/gimp-transform-utils.c (gimp_transform_matrix_flip_free): + applied patch from Joao S. O. Bueno that fixes bug #160339. + 2004-12-05 Sven Neumann * plug-ins/help/domain.c diff --git a/app/core/gimp-transform-utils.c b/app/core/gimp-transform-utils.c index 86359febc2..fbc706ecce 100644 --- a/app/core/gimp-transform-utils.c +++ b/app/core/gimp-transform-utils.c @@ -67,20 +67,17 @@ gimp_transform_matrix_flip_free (gint x, GimpMatrix3 *result) { gdouble angle; - gdouble dx, dy; g_return_if_fail (result != NULL); angle = atan2 (y2 - y1, x2 - x1); - dx = x - x1; - dy = (x1 + ((y2 - y1) / (x2 - x1) ) * x) - y1; gimp_matrix3_identity (result); - gimp_matrix3_translate (result, dx, dy); + gimp_matrix3_translate (result, -x1, -y1); gimp_matrix3_rotate (result, -angle); gimp_matrix3_scale (result, 1.0, -1.0); gimp_matrix3_rotate (result, angle); - gimp_matrix3_translate (result, -dx, -dy); + gimp_matrix3_translate (result, x1, y1); } void