Commit 89081075 authored by Michael Natterer's avatar Michael Natterer 😴

app: don't subtract the offset twice in zoom_xy() and transform_xy()

parent 5d0450e4
......@@ -113,8 +113,8 @@ gimp_display_shell_zoom_xy (const GimpDisplayShell *shell,
g_return_if_fail (nx != NULL);
g_return_if_fail (ny != NULL);
tx = x * shell->scale_x - shell->offset_x;
ty = y * shell->scale_y - shell->offset_y;
tx = x * shell->scale_x;
ty = y * shell->scale_y;
tx -= shell->offset_x;
ty -= shell->offset_y;
......@@ -626,8 +626,8 @@ gimp_display_shell_transform_xy (const GimpDisplayShell *shell,
g_return_if_fail (nx != NULL);
g_return_if_fail (ny != NULL);
tx = x * shell->scale_x - shell->offset_x;
ty = y * shell->scale_y - shell->offset_y;
tx = x * shell->scale_x;
ty = y * shell->scale_y;
tx -= shell->offset_x;
ty -= shell->offset_y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment