Skip to content

Commit

Permalink
Port fix for mapbox/earcut#17
Browse files Browse the repository at this point in the history
Refs #6
  • Loading branch information
jfirebaugh committed Oct 13, 2015
1 parent 154f101 commit 3cb78fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/earcut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void Earcut<Coord, N>::splitEarcut(Node* start) {
do {
Node* b = a->next->next;
while (b != a->prev) {
if (isValidDiagonal(a, b)) {
if (a->i != b->i && isValidDiagonal(a, b)) {
// split the polygon in two by the diagonal
auto c = splitPolygon(a, b);

Expand Down

0 comments on commit 3cb78fd

Please sign in to comment.