app: fix handle hovering detection, it was using the wrong radius

This commit is contained in:
Michael Natterer 2010-11-06 00:05:35 +01:00
parent 31aa09a11f
commit a73348c561
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ gimp_cage_tool_is_on_handle (GimpCageConfig *gcc,
x, y,
vert_x, vert_y);
if (dist <= (handle_size * handle_size))
if (dist <= SQR (handle_size / 2))
return i;
}