[gimp] Issue #3224: Fill by Line Art Detection Bug (Fatal Error with Crash).
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #3224: Fill by Line Art Detection Bug (Fatal Error with Crash).
- Date: Fri, 12 Apr 2019 12:50:20 +0000 (UTC)
commit 5d5ced88a8f057172c57eebf216775871a99e182
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!
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 de44f25cc1..8576713d2e 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]