From eee318461def892ed0d87aad36b18a9e98b3fda0 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sun, 24 Mar 2013 18:50:33 +0100 Subject: [PATCH] Fix drawing of closed polygons in certain situations (ticket 2309). Drawing of the closing line could be skipped depending on the specific vertex coordinates (and order). Can't say that I undestand the code completely but this change seems to fix the problem, and I don't think it can cause trouble. --- src/lib/polygon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/polygon.c b/src/lib/polygon.c index 90e6956..ebcfa94 100644 --- a/src/lib/polygon.c +++ b/src/lib/polygon.c @@ -299,7 +299,7 @@ do { \ for (m = 0; (m < nactive_edges) && (edge[m].index != i); m++); \ \ if ((m == nactive_edges) && (i < nvertices) && \ - (nactive_edges < (nvertices - 1))) \ + (nactive_edges < nvertices)) \ { \ ImlibPoint *v0, *v1, *w; \ PolyEdge *ne; \