From 5772a9c1717a55dc84f4d39dfe930fe1e9cbc205 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 18 May 2021 21:31:09 +0800 Subject: [PATCH] optimize: ignore duplicated point in Line --- src/Views/Controls/CommitGraph.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Controls/CommitGraph.cs b/src/Views/Controls/CommitGraph.cs index 0915c880..82e00d6f 100644 --- a/src/Views/Controls/CommitGraph.cs +++ b/src/Views/Controls/CommitGraph.cs @@ -270,7 +270,7 @@ namespace SourceGit.Views.Controls { } else { ctx.QuadraticBezierTo(new Point(last.X, cur.Y), cur, true, false); } - } else { + } else if (cur.Y != last.Y) { ctx.LineTo(cur, true, false); }