From 2c4a59c1e515419b479c563bc26b2e2aad984282 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 30 Mar 2012 23:42:23 +0200 Subject: [PATCH] app: fix buffer copying offsets in gimp_clone_motion() so it works again at the image's borders. --- app/paint/gimpclone.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/paint/gimpclone.c b/app/paint/gimpclone.c index efbe8d22ee..4abe8dab32 100644 --- a/app/paint/gimpclone.c +++ b/app/paint/gimpclone.c @@ -175,17 +175,21 @@ gimp_clone_motion (GimpSourceCore *source_core, dest_buffer = gegl_buffer_linear_new_from_data (temp_buf_get_data (paint_area), gimp_drawable_get_format_with_alpha (drawable), - GIMP_GEGL_RECT (paint_area_offset_x, paint_area_offset_y, - paint_area_width, paint_area_height), + GIMP_GEGL_RECT (0, 0, + paint_area->width, + paint_area->height), paint_area->width * paint_area->bytes, NULL, NULL); gegl_buffer_copy (src_buffer, GIMP_GEGL_RECT (0, 0, - paint_area_width, paint_area_height), + paint_area_width, + paint_area_height), dest_buffer, - NULL); + GIMP_GEGL_RECT (paint_area_offset_x, + paint_area_offset_y, + 0, 0)); g_object_unref (dest_buffer); }