summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2013-03-24 18:50:33 +0100
committerKim Woelders <kim@woelders.dk>2013-03-24 20:28:31 +0100
commiteee318461def892ed0d87aad36b18a9e98b3fda0 (patch)
treeca31324221481efe3fcfbb5a6dbe9350a95946ad
parentd943d1ebea09b04b7b65b56d57a3fe1e8dcb7127 (diff)
downloadimlib2-eee318461def892ed0d87aad36b18a9e98b3fda0.tar.gz
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.
-rw-r--r--src/lib/polygon.c2
1 files changed, 1 insertions, 1 deletions
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; \