* TreeNodeCollection.cs: Fix copyto to use the correct nodes
authorJackson Harper <jackson@novell.com>
Thu, 3 Aug 2006 18:20:10 +0000 (18:20 -0000)
committerJackson Harper <jackson@novell.com>
Thu, 3 Aug 2006 18:20:10 +0000 (18:20 -0000)
        length. (We have a larger array then actual node count).

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

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNodeCollection.cs

index d50275d474513811e5bdcbf73756b77103d14e11..42fcd1dc2d1b88020915e3f3728c8a8565ac8386 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-03  Jackson Harper  <jackson@ximian.com>
+
+       * TreeNodeCollection.cs: Fix copyto to use the correct nodes
+       length. (We have a larger array then actual node count).
+               
 2006-08-03  Jackson Harper  <jackson@ximian.com>
 
        * ComboBox.cs: Don't show selection by default.
index fef06fa50b2fdc82639ffc81d134d363ae5be2eb..ed90fb11171b923f9f97f05d91faacab1a9f7f34 100644 (file)
@@ -167,7 +167,7 @@ namespace System.Windows.Forms {
 
                public void CopyTo (Array dest, int index)
                {
-                       nodes.CopyTo (dest, index);
+                       Array.Copy (nodes, index, dest, index, count);
                }
 
                public IEnumerator GetEnumerator ()