From 506eef248091c1c67b320f0bd1667990cb2aac63 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Sat, 3 Nov 2018 16:30:27 +1100 Subject: [PATCH] fix error handling in i_polygon() for non-polygon polygons --- polygon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygon.c b/polygon.c index 58ac8ec3..db296be9 100644 --- a/polygon.c +++ b/polygon.c @@ -468,7 +468,7 @@ i_poly_poly_aa_low(i_img *im, int count, const i_polygon_t *polys, for (k = 0; k < count; ++k) { if (polys[k].count < 3) { - i_push_errorf(0, "polygons must have at least 3 points"); + i_push_error(0, "polygons must have at least 3 points"); return 0; } } -- 2.39.5