Преглед изворни кода

* TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
fail. Dieter Bremes


svn path=/trunk/mcs/; revision=53779

Jackson Harper пре 20 година
родитељ
комит
4e145f2af9

+ 5 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,8 @@
+2005-12-01  Jackson Harper  <[email protected]>
+
+	* TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
+	fail. Dieter Bremes
+
 2005-11-30  Jackson Harper  <[email protected]>
 
 	* Form.cs: Property is 2.0 only

+ 2 - 2
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs

@@ -199,7 +199,7 @@ namespace System.Windows.Forms {
 
 		public string FullPath {
 			get {
-				if (tree_view == null)
+				if (TreeView == null)
 					throw new Exception ("No TreeView associated");
 
 				StringBuilder builder = new StringBuilder ();
@@ -499,7 +499,7 @@ namespace System.Windows.Forms {
 		public int Index {
 			get {
 				if (parent == null)
-					return -1;
+					return 0;
 				return parent.Nodes.IndexOf (this);
 			}
 		}