[gimp/soc-2011-seamless-clone2] app: fix copy/paste error in gimp_display_shell_transform_xy()



commit 5490eac624d6a638ec886f8076126345513f660c
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 files changed, 1 insertions(+), 1 deletions(-)
---
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]