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 58ac8ec..db296be 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;
     }
   }