fix<CommitGraph>: ignore all other branches merged into the last commit.

This commit is contained in:
leo 2020-09-25 11:15:04 +08:00
parent 488a7b37c4
commit f3ee044818

View file

@ -259,7 +259,11 @@ namespace SourceGit.Helpers {
// 处理尚未终结的线 // 处理尚未终结的线
for (int i = 0; i < unsolved.Count; i++) { for (int i = 0; i < unsolved.Count; i++) {
var path = unsolved[i]; var path = unsolved[i];
path.AddPoint((i + 0.5) * UNIT_WIDTH, (commits.Count - 0.5) * UNIT_HEIGHT, true); var endY = (commits.Count - 0.5) * UNIT_HEIGHT;
if (path.Points.Count == 1 && path.Points[0].Y == endY) continue;
path.AddPoint((i + 0.5) * UNIT_WIDTH, endY, true);
maker.Lines.Add(path); maker.Lines.Add(path);
} }
unsolved.Clear(); unsolved.Clear();