Commit b35941ec authored by Jehan's avatar Jehan

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

... with some images.

(cherry picked from commit 036ccc70)
parent 61a6b15a
......@@ -1562,8 +1562,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