Skip to content

Commit 162554f

Browse files
authored
Merge pull request #871 from hx2A/fix791
Fix JAVA2D problem in shapes with multiple contours
2 parents 66387bf + 23d171a commit 162554f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/processing/core/PShape.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,7 @@ protected void drawGeometry(PGraphics g) {
17831783
g.endContour();
17841784
}
17851785
g.beginContour();
1786+
codeIndex++;
17861787
insideContour = true;
17871788
}
17881789

@@ -1795,6 +1796,7 @@ protected void drawGeometry(PGraphics g) {
17951796
g.endContour();
17961797
}
17971798
g.beginContour();
1799+
codeIndex++;
17981800
insideContour = true;
17991801
}
18001802

0 commit comments

Comments
 (0)