2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 25 Oct 2004 13:01:27 +0000 (13:01 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 25 Oct 2004 13:01:27 +0000 (13:01 -0000)
* ListItemCollection.cs: fixed bug when indexing changed elements in
LoadViewState. Patch from Alois B��la��ka.

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

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/ListItemCollection.cs

index 651f816340ad8de78004e233f77b28166417b044..b949a972775d1dcd2f49975e80a188ed848c2e01 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ListItemCollection.cs: fixed bug when indexing changed elements in
+       LoadViewState. Patch from Alois Bělaška.
+
 2004-10-20 Sanjay Gupta <gsanjay@novell.com>
        
        * SiteMapDataSourceView.cs: 
index acaa33be15b9fe43f31492419fb95f3ac6564ad9..7a9237bea09e7416a24d86e017da26aa59c1167d 100644 (file)
@@ -272,7 +272,7 @@ namespace System.Web.UI.WebControls
                                end = indices.Count;\r
                                for (i = 0; i < end; i++) {\r
                                        if ((int) indices [i] < Count ) {\r
-                                               this [i].LoadViewState (states [i]);\r
+                                               this [(int) indices [i]].LoadViewState (states [i]);\r
                                        } else {\r
                                                ListItem temp = new ListItem ();\r
                                                temp.LoadViewState (states [i]);\r