[gimp] app: fix copy/paste error in gimp_display_shell_transform_xy()



commit 65a2d2be31cbad332033bed8d63bcfccceb8e0ae
Author: Michael Natterer <mitch gimp org>
Date:   Thu Apr 18 15:20:21 2013 +0200

    app: fix copy/paste error in gimp_display_shell_transform_xy()

 app/display/gimpdisplayshell-transform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/display/gimpdisplayshell-transform.c b/app/display/gimpdisplayshell-transform.c
index d245a29..ffe1fd5 100644
--- a/app/display/gimpdisplayshell-transform.c
+++ b/app/display/gimpdisplayshell-transform.c
@@ -113,7 +113,7 @@ gimp_display_shell_transform_xy (const GimpDisplayShell *shell,
   g_return_if_fail (ny != NULL);
 
   tx = x * shell->scale_x - shell->offset_x;
-  ty = y * shell->scale_y - shell->offset_x;
+  ty = y * shell->scale_y - shell->offset_y;
 
   /* The projected coordinates might overflow a gint in the case of big
      images at high zoom levels, so we clamp them here to avoid problems.  */


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