From: Tony Cook Date: Sat, 3 Nov 2018 05:30:27 +0000 (+1100) Subject: fix error handling in i_polygon() for non-polygon polygons X-Git-Tag: v1.007~9 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/506eef248091c1c67b320f0bd1667990cb2aac63 fix error handling in i_polygon() for non-polygon polygons --- 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; } }