[Mono-devel-list] Bug in System.Web.UI.ControlCollection.cs

Gonzalo Paniagua Javier gonzalo at ximian.com
Tue Dec 14 07:34:45 EST 2004


On Tue, 2004-12-14 at 14:09 +0200, MN wrote:
>                 public virtual void RemoveAt (int index)
>                 {
>                         if (readOnly)
>                                 throw new HttpException ();
> 
>                         version++;
>                         Control ctrl = controls [index];
>                         // BUG should be count - index -1
>                         Array.Copy (controls, index + 1, controls, index,
> count - index );
>                         count--;
>                         owner.RemovedControl (ctrl);
>                 }

That was fixed a few hours ago in SVN.

Thanks.

-Gonzalo




More information about the Mono-devel-list mailing list