Author: igorz
Date: 2006-10-05 12:11:39 -0400 (Thu, 05 Oct 2006)
New Revision: 66296

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
Log:
2006-10-05 Igor Zelmanovich <[EMAIL PROTECTED]>

        * DetailsView.cs: optimization for previous patch



Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-10-05 16:08:10 UTC (rev 66295)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-10-05 16:11:39 UTC (rev 66296)
@@ -1,5 +1,9 @@
 2006-10-05 Igor Zelmanovich <[EMAIL PROTECTED]>
 
+       * DetailsView.cs: optimization for previous patch
+
+2006-10-05 Igor Zelmanovich <[EMAIL PROTECTED]>
+
        * FormView.cs: optimization for previous patch
 
 2006-10-05 Igor Zelmanovich <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs 
2006-10-05 16:08:10 UTC (rev 66295)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs 
2006-10-05 16:11:39 UTC (rev 66296)
@@ -1294,7 +1294,7 @@
                                                if (n == 0 && field.ShowHeader) 
{
                                                        if (fieldHeaderStyle != 
null && !fieldHeaderStyle.IsEmpty)
                                                                
fcell.ControlStyle.CopyFrom (fieldHeaderStyle);
-                                                       if 
(field.HeaderStyleCreated)
+                                                       if 
(field.HeaderStyleCreated && !field.HeaderStyle.IsEmpty)
                                                                
fcell.ControlStyle.CopyFrom (field.HeaderStyle);
                                                }
                                                else {
@@ -1304,7 +1304,7 @@
                                                                        if (wc 
!= null)
                                                                                
wc.ControlStyle.MergeWith (field.ControlStyle);
                                                                }
-                                                       if 
(field.ItemStyleCreated)
+                                                       if 
(field.ItemStyleCreated && !field.ItemStyle.IsEmpty)
                                                                
fcell.ControlStyle.CopyFrom (field.ItemStyle);
                                                }
                                        }

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

Reply via email to