Skip to content

Commit fbfca7b

Browse files
committed
enhance: better graph for ended orphan branch (#528)
1 parent 4b5d65c commit fbfca7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Models/CommitGraph.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ public void Goto(double x, double y, double halfHeight)
8686
}
8787
else if (x < LastX)
8888
{
89-
Add(LastX, y - halfHeight);
89+
var minY = y - halfHeight;
90+
if (minY > LastY)
91+
minY -= halfHeight;
92+
93+
Add(LastX, minY);
9094
Add(x, y);
9195
}
9296

0 commit comments

Comments
 (0)