Bug 722034 - Incorrect snapping behaviour for scale tool

Always snap to the center of transform tool handles.
This commit is contained in:
Michael Natterer
2014-01-29 23:40:35 +01:00
parent 219bf35299
commit 5054241ca6
3 changed files with 37 additions and 0 deletions

View File

@ -493,6 +493,21 @@ gimp_canvas_handle_new (GimpDisplayShell *shell,
NULL);
}
void
gimp_canvas_handle_get_position (GimpCanvasItem *handle,
gdouble *x,
gdouble *y)
{
g_return_if_fail (GIMP_IS_CANVAS_HANDLE (handle));
g_return_if_fail (x != NULL);
g_return_if_fail (y != NULL);
g_object_get (handle,
"x", x,
"y", y,
NULL);
}
void
gimp_canvas_handle_set_position (GimpCanvasItem *handle,
gdouble x,