Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Jan 3, 2024
1 parent da1f36a commit 370a535
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ Vector2 PostPoint2(double tGridUnit, double xGridUnit)
VisibleLineVerticesQuery.QueryVisibleLineVertices(target, start, VertexDash.Solider, color, list);
if (list.Count > 0)
{
while (holdPoint.Y > list[0].Point.Y)
while (list.Count > 0 && holdPoint.Y > list[0].Point.Y)
list.RemoveAt(0);
list.Insert(0, new LineVertex(holdPoint, color, VertexDash.Solider));
while (holdEndPoint.Y < list[list.Count - 1].Point.Y)
while (list.Count > 0 && holdEndPoint.Y < list[list.Count - 1].Point.Y)
list.RemoveAt(list.Count - 1);
list.Add(new LineVertex(holdEndPoint, color, VertexDash.Solider));
}
Expand Down

0 comments on commit 370a535

Please sign in to comment.