[gimp] Heal: Make HealTool work when brush is partially outside of layer



commit 8cd272bb8024886822185e9c39be276bf1c97a4e
Author: Enrico SchrÃder <enni schroeder gmail com>
Date:   Fri Apr 1 22:19:34 2011 +0200

    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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/paint/gimpheal.c b/app/paint/gimpheal.c
index 68b2ba1..545381d 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]