From 950083df349cbda55850db497f5ce4a31009c45a Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 15 Jul 2024 21:16:55 +0800 Subject: [PATCH] enhance: exit loop on the first path that out of canvas bound --- src/Views/Histories.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index ec346963..a91fd0b4 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -158,7 +158,7 @@ namespace SourceGit.Views if (line.Points[size - 1].Y < top) continue; if (last.Y > bottom) - continue; + break; var geo = new StreamGeometry(); var pen = Models.CommitGraph.Pens[line.Color];