Skip to content

Commit 8b82be0

Browse files
committed
Merge pull request #4 from ncruces/contourbug
Fixed bug in OutputContours, closes #4.
2 parents f5e16f5 + 7d359f0 commit 8b82be0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LibTessDotNet/Sources/Tess.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,9 @@ private void OutputContours()
567567
vertCount = 0;
568568
start = edge = f._anEdge;
569569
do {
570-
_vertices[vertIndex++].Position = edge._Org._coords;
571-
_vertices[vertIndex++].Data = edge._Org._data;
570+
_vertices[vertIndex].Position = edge._Org._coords;
571+
_vertices[vertIndex].Data = edge._Org._data;
572+
++vertIndex;
572573
++vertCount;
573574
edge = edge._Lnext;
574575
} while (edge != start);

0 commit comments

Comments
 (0)