Commit 036ccc70 authored by Jehan's avatar Jehan

Issue #2785: Fill by line art detection produces Segmentation fault...

... with some images.
parent 9833da34
......@@ -1556,8 +1556,11 @@ gimp_lineart_curvature_extremums (gfloat *curvatures,
}
g_free (p);
}
curvatures[(gint) max_curvature_pixel.x + (gint) max_curvature_pixel.y * width] = max_curvature;
g_array_append_val (max_positions, max_curvature_pixel);
if (max_curvature > 0.0)
{
curvatures[(gint) max_curvature_pixel.x + (gint) max_curvature_pixel.y * width] = max_curvature;
g_array_append_val (max_positions, max_curvature_pixel);
}
}
}
g_queue_free_full (q, g_free);
......
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