[gimp/gimp-2-10] Issue #3224: Fill by Line Art Detection Bug (Fatal Error with Crash).



commit dcc297b6f75dee81f7ff3f0ae1f20481c2ff07af
Author: Jehan <jehan girinstud io>
Date:   Fri Apr 12 14:48:15 2019 +0200

    Issue #3224: Fill by Line Art Detection Bug (Fatal Error with Crash).
    
    Typos in gimp_pickable_contiguous_region_by_line_art().
    Thanks to Massimo for debugging these!
    
    (cherry picked from commit 5d5ced88a8f057172c57eebf216775871a99e182)

 app/core/gimppickable-contiguous-region.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimppickable-contiguous-region.cc b/app/core/gimppickable-contiguous-region.cc
index 5469c22cc1..d98186b794 100644
--- a/app/core/gimppickable-contiguous-region.cc
+++ b/app/core/gimppickable-contiguous-region.cc
@@ -550,7 +550,7 @@ gimp_pickable_contiguous_region_by_line_art (GimpPickable *pickable,
                     line_art_queue_pixel (queue, nx, ny, c->level + 1);
                   if (c->y < height - 1)
                     {
-                      ny = c->y - 1;
+                      ny = c->y + 1;
                       if (mask[nx + ny * width] == 0.0 &&
                           distmap[nx + ny * width] > distmap[c->x + c->y * width])
                         line_art_queue_pixel (queue, nx, ny, c->level + 1);
@@ -572,7 +572,7 @@ gimp_pickable_contiguous_region_by_line_art (GimpPickable *pickable,
                     line_art_queue_pixel (queue, nx, ny, c->level + 1);
                   if (c->y < height - 1)
                     {
-                      ny = c->y - 1;
+                      ny = c->y + 1;
                       if (mask[nx + ny * width] == 0.0 &&
                           distmap[nx + ny * width] > distmap[c->x + c->y * width])
                         line_art_queue_pixel (queue, nx, ny, c->level + 1);


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