1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 05:22:40 +02:00

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

... with some images.
This commit is contained in:
Jehan
2019-01-13 17:40:25 +01:00
parent 9833da3431
commit 036ccc70cf

View File

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