Skip to content

Commit

Permalink
Simplified equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehonti committed Dec 18, 2023
1 parent 81e96ef commit 65d8e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pinta.Core/Extensions/OtherExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static IReadOnlyList<IReadOnlyList<PointI>> CreatePolygonSet (this BitMas
last = curr;
curr = next;

if (next.X == start.X && next.Y == start.Y)
if (next == start)
break;
}

Expand Down

0 comments on commit 65d8e86

Please sign in to comment.