[gimp/gimp-2-8] Bug 763207 - Dilate / Erode Missing First Line



commit f8b3fb2bb1a0dbc7312a20c992bfb9a2af88000a
Author: Michael Natterer <mitch gimp org>
Date:   Sun Mar 20 20:01:56 2016 +0100

    Bug 763207 - Dilate / Erode Missing First Line
    
    Apply patch from vasthusya gmail com which fixes the first line
    of dilate/erode.

 plug-ins/common/value-propagate.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/value-propagate.c b/plug-ins/common/value-propagate.c
index 7a823a4..7622b37 100644
--- a/plug-ins/common/value-propagate.c
+++ b/plug-ins/common/value-propagate.c
@@ -468,7 +468,11 @@ value_propagate_body (GimpDrawable *drawable,
   nr = next_row + bytes;
 
   prepare_row (&srcRgn, pr, begx, (0 < begy) ? begy : begy - 1, endx-begx);
-  prepare_row (&srcRgn, cr, begx, begy, endx-begx);
+
+  if (0 < begy)
+    prepare_row (&srcRgn, cr, begx, begy, endx-begx);
+  else
+    memcpy (cur_row, prev_row, (width + 2) * bytes);
 
   best = g_new (guchar, bytes);
 


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