Skip to content

Commit aca4e24

Browse files
Fix clipper
1 parent 4feb7b7 commit aca4e24

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/ImageSharp.Drawing/Shapes/PolygonClipper

src/ImageSharp.Drawing/Shapes/PolygonClipper/Clipper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ public IPath[] GenerateClippedShapes()
6868

6969
for (int i = 0; i < openPaths.Count; i++)
7070
{
71-
var points = new PointF[closedPaths[i].Count];
71+
var points = new PointF[openPaths[i].Count];
7272

73-
for (int j = 0; j < closedPaths[i].Count; j++)
73+
for (int j = 0; j < openPaths[i].Count; j++)
7474
{
75-
Point64 p = closedPaths[i][j];
75+
Point64 p = openPaths[i][j];
7676

7777
// to make the floating point polygons compatable with clipper we had
7878
// to scale them up to make them ints but still retain some level of precision

0 commit comments

Comments
 (0)