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!
This commit is contained in:
Jehan 2019-04-12 14:48:15 +02:00
parent c5fae74ac1
commit 5d5ced88a8
1 changed files with 2 additions and 2 deletions

View File

@ -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);