diff --git a/app/core/gimplineart.c b/app/core/gimplineart.c index de67cf7d96..7b564cfa10 100644 --- a/app/core/gimplineart.c +++ b/app/core/gimplineart.c @@ -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);