]> git.imager.perl.org - imager.git/commitdiff
fix error handling in i_polygon() for non-polygon polygons
authorTony Cook <tony@develop-help.com>
Sat, 3 Nov 2018 05:30:27 +0000 (16:30 +1100)
committerTony Cook <tony@develop-help.com>
Sat, 3 Nov 2018 05:30:27 +0000 (16:30 +1100)
polygon.c

index 58ac8ec3b7a6e2f06e6dcdf7deb6adb81920a572..db296be983b24a70b2062b170902a4c89c21459c 100644 (file)
--- 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;
     }
   }