diff Widgets/UnitDisplayWidget.cs @ 13:6b2c8e55564a

* Fix line terminators no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Jun 2009 19:05:57 +0000
parents 4e5e382fbd2e
children 85db2c9a1546
line wrap: on
line diff
--- a/Widgets/UnitDisplayWidget.cs	Thu Jun 25 18:12:43 2009 +0000
+++ b/Widgets/UnitDisplayWidget.cs	Sat Jun 27 19:05:57 2009 +0000
@@ -37,28 +37,28 @@
 			unit.NameChanged+= new StringValChangedDelegate(UnitNameChanged);
 			unit.UnitSizeChanged+= new IntValChangedDelegate(UnitSizeChanged);
 			SetStats();
-		}
-
-		private void SetStats()
-		{
-            //GameSystem system = unit.Army.GameSystem;
+		}
+
+		private void SetStats()
+		{
+            //GameSystem system = unit.Army.GameSystem;
             //SystemStats stats = system.StandardSystemStats;
             CellRendererText renderer = new CellRendererText();
             unitStats.AppendColumn(Translation.GetTranslation("UnitNameColumn", "Unit Type", null), renderer, new TreeCellDataFunc(RenderUnitName));
             
             TreeCellDataFunc statFunc = new TreeCellDataFunc(RenderUnitStat);
-            Stat[] stats = unit.UnitStatsArray;
-			
-			int length = stats.Length;
-
-			for (int i = 0; i < length; i++)
+            Stat[] stats = unit.UnitStatsArray;
+			
+			int length = stats.Length;
+
+			for (int i = 0; i < length; i++)
 			{
-	            unitStats.AppendColumn(stats[i].ParentSlot.Name, renderer, statFunc);
-			}
+	            unitStats.AppendColumn(stats[i].ParentSlot.Name, renderer, statFunc);
+			}
 
 			TreeStore model = new TreeStore(typeof(IBBoard.WarFoundry.API.Objects.Unit));
-			model.AppendValues(unit);
-			unitStats.Model = model;
+			model.AppendValues(unit);
+			unitStats.Model = model;
 		}
 		
 		private void RenderUnitName(TreeViewColumn column, CellRenderer cell, TreeModel model, TreeIter iter)