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.
This commit is contained in:
Kim Woelders 2013-03-24 18:50:33 +01:00
parent d943d1ebea
commit eee318461d
1 changed files with 1 additions and 1 deletions

View File

@ -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; \