Author: gonzalo
Date: 2005-12-05 17:37:45 -0500 (Mon, 05 Dec 2005)
New Revision: 53954

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/Control.cs
Log:
2005-12-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Control.cs: use the _controls field instead of the Controls property.
        Fixes bug #76919.



Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-12-05 22:37:08 UTC 
(rev 53953)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2005-12-05 22:37:45 UTC 
(rev 53954)
@@ -1,3 +1,8 @@
+2005-12-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Control.cs: use the _controls field instead of the Controls property.
+       Fixes bug #76919.
+
 2005-11-30  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * KeyedList.cs: Fixed for IOrderedDictionary change in 2.0 final.

Modified: trunk/mcs/class/System.Web/System.Web.UI/Control.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/Control.cs 2005-12-05 22:37:08 UTC 
(rev 53953)
+++ trunk/mcs/class/System.Web/System.Web.UI/Control.cs 2005-12-05 22:37:45 UTC 
(rev 53954)
@@ -924,10 +924,10 @@
                 {
                         if (_renderMethodDelegate != null) {
                                 _renderMethodDelegate (writer, this);
-                       } else if (HasControls ()) {
-                               int len = Controls.Count;
+                       } else if (_controls != null) {
+                               int len = _controls.Count;
                                for (int i = 0; i < len; i++) {
-                                       Control c = Controls [i];
+                                       Control c = _controls [i];
 #if NET_2_0
                                        if (c.Adapter != null)
                                                c.RenderControl (writer, 
c.Adapter);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to