Browse Source

fixed root node indentation

tznind 4 years ago
parent
commit
d68dbca108
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Views/TreeView.cs

+ 1 - 1
Terminal.Gui/Views/TreeView.cs

@@ -631,7 +631,7 @@ namespace Terminal.Gui {
 		private string GetLinePrefix (ConsoleDriver driver)
 		private string GetLinePrefix (ConsoleDriver driver)
 		{
 		{
 			// If not showing line branches or this is a root object
 			// If not showing line branches or this is a root object
-			if(!tree.ShowBranchLines || Parent == null)
+			if(!tree.ShowBranchLines)
 				return new string(' ',Depth);
 				return new string(' ',Depth);
 
 
 			string prefix = "";
 			string prefix = "";