Fix GetRuneTypeForIntersects to work for dots

This commit is contained in:
tznind
2023-01-07 07:45:07 +00:00
parent ab5f4ccfb5
commit 49512e3a42

View File

@@ -131,6 +131,10 @@ namespace Terminal.Gui.Graphs {
private IntersectionRuneType GetRuneTypeForIntersects (IntersectionDefinition [] intersects)
{
if(intersects.All(i=>i.Line.Length == 0)) {
return IntersectionRuneType.Dot;
}
// ignore dots
intersects = intersects.Where (i => i.Type != IntersectionType.Dot).ToArray ();