* PagedDataSource.cs (PrivateICollectionEnumerator.MoveNext):
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / Panel.cs
index 7d83c647465bcbe3e4cd498e41ca84e0f1eeb793..444d8ac67da3d5813b73b95ad956c843ed2afc45 100644 (file)
@@ -94,7 +94,7 @@ namespace System.Web.UI.WebControls
                        {\r
                                writer.AddAttribute(HtmlTextWriterAttribute.Align, TypeDescriptor.GetConverter(typeof(HorizontalAlign)).ConvertToString(HorizontalAlign));\r
                        }\r
-                       if(Wrap)\r
+                       if(!Wrap)\r
                        {\r
                                writer.AddAttribute(HtmlTextWriterAttribute.Nowrap, "nowrap");\r
                        }\r