optimize<CommitGraph>: ignore duplicated point in Line

This commit is contained in:
leo 2021-05-18 21:31:09 +08:00
parent 81d623c17f
commit 5772a9c171

View file

@ -270,7 +270,7 @@ namespace SourceGit.Views.Controls {
} else { } else {
ctx.QuadraticBezierTo(new Point(last.X, cur.Y), cur, true, false); ctx.QuadraticBezierTo(new Point(last.X, cur.Y), cur, true, false);
} }
} else { } else if (cur.Y != last.Y) {
ctx.LineTo(cur, true, false); ctx.LineTo(cur, true, false);
} }