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

app: fix gimp_draw_tool_on_handle() on rotated views

Unrotate the display coords, then compare rectangles.
parent b3a9a6a3
......@@ -1016,6 +1016,14 @@ gimp_draw_tool_on_handle (GimpDrawTool *draw_tool,
handle_x, handle_y,
&handle_tx, &handle_ty);
if (shell->rotate_untransform)
{
cairo_matrix_transform_point (shell->rotate_untransform,
&tx, &ty);
cairo_matrix_transform_point (shell->rotate_untransform,
&handle_tx, &handle_ty);
}
switch (type)
{
case GIMP_HANDLE_SQUARE:
......
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