Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-11-30 23:02:31 +0300
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-11-30 23:02:31 +0300
commit7a830b992678eebff504ffc1318a0862354ec330 (patch)
treef804df1e0d8d9df8b1ab7849d7a2d8ac0123cc9d /mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlTableRow.cs
parente4e516d410c0617749518feafa1b6b01ac7bbb31 (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.cs8
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 ();
}