enhance: exit loop on the first path that out of canvas bound

This commit is contained in:
leo 2024-07-15 21:16:55 +08:00
parent 3b0f481e4b
commit 950083df34
No known key found for this signature in database

View file

@ -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];