app: fix gimp_draw_tool_on_handle() on rotated views

Unrotate the display coords, then compare rectangles.
This commit is contained in:
Michael Natterer 2013-04-20 15:30:23 +02:00
parent b3a9a6a3e3
commit f1b5012f23
1 changed files with 8 additions and 0 deletions

View File

@ -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: