[SWF] Allow to compile without X11 installed (Xamarin-59496)
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms.Layout / TableLayoutSettingsTypeConverter.cs
index 575c0fe753e93b495544fca17d481f0b17195325..b4e90d4c43af79171e8c4bd7e3295d42dfc00c6f 100644 (file)
@@ -118,7 +118,7 @@ namespace System.Windows.Forms.Layout
 \r
                        XmlDocument xmldoc = new XmlDocument();\r
                        xmldoc.LoadXml (value as string);\r
-                       TableLayoutSettings settings = new TableLayoutSettings(new TableLayoutPanel());\r
+                       TableLayoutSettings settings = new TableLayoutSettings(null);
                        int count = ParseControl (xmldoc, settings);\r
                        ParseColumnStyle (xmldoc, settings);\r
                        ParseRowStyle (xmldoc, settings);\r