From 8cd272bb8024886822185e9c39be276bf1c97a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Schr=C3=B6der?= Date: Fri, 1 Apr 2011 22:19:34 +0200 Subject: [PATCH] Heal: Make HealTool work when brush is partially outside of layer Fix for bug 568098 https://bugzilla.gnome.org/show_bug.cgi?id=568098 Removes condition for not applying heal when (destination)brush is partially outside of layer. Instead heal is not applied when brush is completely outside. --- app/paint/gimpheal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/paint/gimpheal.c b/app/paint/gimpheal.c index 68b2ba19ff..545381d73d 100644 --- a/app/paint/gimpheal.c +++ b/app/paint/gimpheal.c @@ -553,11 +553,11 @@ gimp_heal_motion (GimpSourceCore *source_core, paint_area_offset_x, paint_area_offset_y, paint_area_width, paint_area_height); - /* check that srcPR, tempPR, destPR, and mask_buf are the same size */ + /* check that srcPR, tempPR and destPR are the same size and tempPR is inside of layer */ if ((srcPR->w != tempPR.w) || (srcPR->w != destPR.w) || (srcPR->h != tempPR.h) || (srcPR->h != destPR.h) || - (srcPR->h != mask_buf->height) || - (srcPR->w != mask_buf->width)) + (tempPR.w <= 0) || + (tempPR.h <= 0)) { /* this generally means that the source point has hit the edge of the layer, so it is not an error and we should not complain, just