Author: krasnov
Date: 2007-06-24 05:21:05 -0400 (Sun, 24 Jun 2007)
New Revision: 80616

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs
Log:
fixed broken 1.1 compatibility

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs    
2007-06-24 09:06:39 UTC (rev 80615)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/CheckBox.cs    
2007-06-24 09:21:05 UTC (rev 80616)
@@ -391,8 +391,13 @@
                                need_span = true;
                        }
 
+#if NET_2_0
                        if (HasAttributes && AddAttributesForSpan (w))
                                need_span = true;
+#else
+                       if (Attributes.Count > 0 && AddAttributesForSpan (w))
+                               need_span = true;
+#endif
 
                        if (need_span)
                                w.RenderBeginTag (HtmlTextWriterTag.Span);

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

Reply via email to