Commit 5d5ced88 authored by Jehan's avatar Jehan

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!
parent c5fae74a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment