[gimp] app: fix gimp_display_shell_un{rotate,transform}_xy() ...
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix gimp_display_shell_un{rotate,transform}_xy() ...
- Date: Thu, 21 Jul 2016 21:31:49 +0000 (UTC)
commit 1663675031afc9592e02676dd4ff210a01577dce
Author: Ell <ell_se yahoo com>
Date: Tue Jul 19 10:04:14 2016 +0000
app: fix gimp_display_shell_un{rotate,transform}_xy() ...
... when the canvas is rotated.
s/fy/fx/ in one of the arguments to cairo_matrix_transform_point().
app/display/gimpdisplayshell-transform.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-transform.c b/app/display/gimpdisplayshell-transform.c
index 179bcae..d63f4d0 100644
--- a/app/display/gimpdisplayshell-transform.c
+++ b/app/display/gimpdisplayshell-transform.c
@@ -380,7 +380,7 @@ gimp_display_shell_unrotate_xy (GimpDisplayShell *shell,
gdouble fx = x;
gdouble fy = y;
- cairo_matrix_transform_point (shell->rotate_untransform, &fy, &fy);
+ cairo_matrix_transform_point (shell->rotate_untransform, &fx, &fy);
*nx = CLAMP (fx, G_MININT, G_MAXINT);
*ny = CLAMP (fy, G_MININT, G_MAXINT);
@@ -689,7 +689,7 @@ gimp_display_shell_untransform_xy (GimpDisplayShell *shell,
gdouble fx = x;
gdouble fy = y;
- cairo_matrix_transform_point (shell->rotate_untransform, &fy, &fy);
+ cairo_matrix_transform_point (shell->rotate_untransform, &fx, &fy);
x = fx;
y = fy;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]