enhance: better graph for ended orphan branch (#528)

This commit is contained in:
leo
2024-09-29 18:41:39 +08:00
parent 4b5d65cdb7
commit fbfca7b4a5

View File

@@ -86,7 +86,11 @@ namespace SourceGit.Models
}
else if (x < LastX)
{
Add(LastX, y - halfHeight);
var minY = y - halfHeight;
if (minY > LastY)
minY -= halfHeight;
Add(LastX, minY);
Add(x, y);
}