Skip to content

Commit

Permalink
fix edge edit with the corner
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
  • Loading branch information
levnach committed Oct 18, 2022
1 parent 4ff5c72 commit 4508d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GraphLayout/Drawing/LayoutEditing/GeometryGraphEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public class GeometryGraphEditor {
/// <returns></returns>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Polyline")]
static CornerSite FindClosestCornerForEdit(SmoothedPolyline underlyingPolyline, Point mousePoint) {
var site = underlyingPolyline.HeadSite.Next;
var site = underlyingPolyline.HeadSite;
var bestSite = site;
var dist = (bestSite.Point - mousePoint).LengthSquared;
while (site.Next != null) {
Expand Down

0 comments on commit 4508d86

Please sign in to comment.