Skip to content

Commit d820b12

Browse files
committed
Fix bug where fillPolygon would only draw the ouline
1 parent 16bde7d commit d820b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/codedraw/Image.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ public void fillPolygon(double x1, double y1, double x2, double y2, double x3, d
13681368
checkNaNAndInfinity(vertices, "vertices");
13691369

13701370
beforeDrawing();
1371-
drawPolygon(new DoubleList().add(x1, y1, x2, y2, x3, y3).add(vertices).toArray());
1371+
fillPolygon(new DoubleList().add(x1, y1, x2, y2, x3, y3).add(vertices).toArray());
13721372
afterDrawing();
13731373
}
13741374

0 commit comments

Comments
 (0)