Skip to content

Commit b5be079

Browse files
committed
fix edge condition in stroke edge for arcs (processing#2854)
1 parent f6099a1 commit b5be079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8185,7 +8185,8 @@ void addArc(float x, float y, float w, float h,
81858185
addEdge(pidx, idx, i == 0, false);
81868186
} else if (0 < i) {
81878187
// when drawing full circle, the edge is closed later
8188-
addEdge(pidx, idx, i == inc, i == length && !fullCircle);
8188+
addEdge(pidx, idx, i == PApplet.min(inc, length),
8189+
i == length && !fullCircle);
81898190
}
81908191
}
81918192
} while (i < length);

0 commit comments

Comments
 (0)