app: add "show all" support to the Perspective Clone tool

... by adapting GimpPerspectiveClone to handle buffers with
arbitrary extents.  Note that the tool doesn't seem to work well in
"sample merged" mode to begin with, but this is unrelated.
This commit is contained in:
Ell 2019-09-06 20:05:29 +03:00
parent c5bf595fe6
commit 19c693a937
1 changed files with 2 additions and 1 deletions

View File

@ -407,7 +407,8 @@ gimp_perspective_clone_get_source (GimpSourceCore *source_core,
case GIMP_CLONE_IMAGE:
if (! gimp_rectangle_intersect (xmin, ymin,
xmax - xmin, ymax - ymin,
0, 0,
gegl_buffer_get_x (src_buffer),
gegl_buffer_get_y (src_buffer),
gegl_buffer_get_width (src_buffer),
gegl_buffer_get_height (src_buffer),
NULL, NULL, NULL, NULL))