diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2005-11-30 23:02:31 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2005-11-30 23:02:31 +0300 |
commit | 7a830b992678eebff504ffc1318a0862354ec330 (patch) | |
tree | f804df1e0d8d9df8b1ab7849d7a2d8ac0123cc9d /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs | |
parent | e4e516d410c0617749518feafa1b6b01ac7bbb31 (diff) |
2005-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HtmlTableRow.cs: fixed the same problem in bug #76815 but this time
for cells.
* HtmlTable.cs: moved WriteLine around.
svn path=/trunk/mcs/; revision=53705
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs index 8c3721717f0..a9f90249439 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs @@ -178,13 +178,9 @@ namespace System.Web.UI.HtmlControls { #endif override void RenderChildren (HtmlTextWriter writer) { - int n = Count; - if (n > 0) { + if (HasControls ()) { writer.Indent++; - for (int i=0; i < n; i++) { - writer.WriteLine (); - _cells [i].RenderControl (writer); - } + base.RenderChildren (writer); writer.Indent--; writer.WriteLine (); } |